-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb3fe22
commit 57a8829
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
rfcs/test-cases/more-advanced-interface-object/fusion/a.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
type Query { | ||
hello: String | ||
myInterfaceById(id: ID!): MyInterface | ||
} | ||
|
||
interface MyInterface { | ||
id: ID! | ||
field: String | ||
} | ||
|
||
type MyType implements MyInterface { | ||
id: ID! | ||
field: String | ||
} |
8 changes: 8 additions & 0 deletions
8
rfcs/test-cases/more-advanced-interface-object/fusion/b.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type Query { | ||
someTypeById(id: ID!): SomeType | ||
} | ||
|
||
type SomeType @baseType(of: "MyInterface") { | ||
id: ID! | ||
newField: String | ||
} |
4 changes: 4 additions & 0 deletions
4
rfcs/test-cases/more-advanced-interface-object/fusion/c.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type MyInterface @baseType(of: "MyInterface") { | ||
id: ID! | ||
field(newField: String! @requires(field: "newField")): String | ||
} |