-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
require-field-of-type-query-in-mutation-result.spec.ts.snap
54 lines (50 loc) · 1.35 KB
/
require-field-of-type-query-in-mutation-result.spec.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[` 1`] = `
1 |
2 | type Query
3 | type Mutation {
> 4 | createUser: User!
| ^^^^ Mutation result type "User" must contain field of type "Query".
5 | }
6 |
`;
exports[` 2`] = `
1 |
2 | type Query
3 | type Mutation
4 |
5 | extend type Mutation {
> 6 | createUser: User!
| ^^^^ Mutation result type "User" must contain field of type "Query".
7 | }
8 |
`;
exports[` 3`] = `
1 |
2 | type RootQuery
3 | type RootMutation {
> 4 | createUser: User!
| ^^^^ Mutation result type "User" must contain field of type "RootQuery".
5 | }
6 |
7 | schema {
8 | mutation: RootMutation
9 | query: RootQuery
10 | }
11 |
`;
exports[` 4`] = `
1 |
2 | type RootQuery
3 | type RootMutation
4 | extend type RootMutation {
> 5 | createUser: User!
| ^^^^ Mutation result type "User" must contain field of type "RootQuery".
6 | }
7 |
8 | schema {
9 | mutation: RootMutation
10 | query: RootQuery
11 | }
12 |
`;