Skip to content

Commit 4d15340

Browse files
committed
refactor(northwind): allow mutations for everyone, add mutation { resetData } for data restoration, remove composeWithRelay from models & mutations
1 parent d049f0c commit 4d15340

File tree

15 files changed

+306
-288
lines changed

15 files changed

+306
-288
lines changed

examples/northwind/__tests__/__snapshots__/queriesFromIndex-test.js.snap

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ Object {
1212
"title": "Inside Sales Coordinator",
1313
},
1414
],
15-
"phraseSearch": Array [
16-
Object {
17-
"firstName": "Anne",
18-
"lastName": "Dodsworth",
19-
"notes": "Anne has a BA degree in English from St. Lawrence College. She is fluent in French and German.",
20-
"title": "Sales Representative",
21-
},
22-
],
15+
"phraseSearch": Array [],
2316
"wordSearch": Array [
2417
Object {
2518
"firstName": "Andrew",
@@ -81,14 +74,15 @@ Object {
8174
}
8275
`;
8376

84-
exports[`nortwind > queries Mutation example (✋ 🛑 For security reason this operation is allowed only on localhost). 1`] = `
77+
exports[`nortwind > queries Mutation example (removeOrder) 1`] = `
8578
Object {
8679
"data": Object {
87-
"removeProduct": null,
80+
"removeOrder": Object {
81+
"record": Object {
82+
"orderID": 10266,
83+
},
84+
},
8885
},
89-
"errors": Array [
90-
[GraphQLError: Cannot read property 'ip' of undefined],
91-
],
9286
}
9387
`;
9488

0 commit comments

Comments
 (0)