File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed
src/test-suites/i-will-name-you-later Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,13 @@ export default createSubgraph("a", {
15
15
16
16
type Post @key(fields: "id") {
17
17
id: ID!
18
- authorId: ID @external
19
- author: Author @requires(fields: "authorId ")
18
+ isJohn: Boolean @external
19
+ isNotJohn: Boolean @requires(fields: "isJohn ")
20
20
}
21
21
22
- type Comment @key(fields: "id") {
22
+ type Author @key(fields: "id") {
23
23
id: ID!
24
- authorId: ID
25
- }
26
-
27
- type Author {
28
- id: ID!
29
- name: String
24
+ name: String!
30
25
}
31
26
` ,
32
27
resolvers : {
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ export default createSubgraph("b", {
11
11
12
12
type Post @key(fields: "id") {
13
13
id: ID!
14
- authorId: ID @requires(fields: "comments { authorId }")
15
- comments: Comment
14
+ author: Author
15
+ isJohn: Boolean @requires(fields: "author { name }")
16
16
}
17
17
18
- type Comment @key(fields: "id") {
18
+ type Author @key(fields: "id") {
19
19
id: ID!
20
- authorId: ID @external
20
+ name: String! @external
21
21
}
22
22
` ,
23
23
resolvers : {
You can’t perform that action at this time.
0 commit comments