-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not apply @semanticNonNull to Node
- Loading branch information
1 parent
2af997c
commit 7b7af03
Showing
3 changed files
with
75 additions
and
12 deletions.
There are no files selected for viewing
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
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
23 changes: 23 additions & 0 deletions
23
...te/Core/test/Types.Tests/__snapshots__/SemanticNonNullTests.Object_Implementing_Node.snap
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,23 @@ | ||
schema { | ||
query: Query | ||
} | ||
|
||
"The node interface is implemented by entities that have a global unique identifier." | ||
interface Node { | ||
id: ID! | ||
} | ||
|
||
type MyNode implements Node { | ||
id: ID! | ||
} | ||
|
||
type Query { | ||
"Fetches an object given its ID." | ||
node("ID of the object." id: ID!): Node | ||
"Lookup nodes by a list of IDs." | ||
nodes("The list of node IDs." ids: [ID!]!): [Node]! | ||
myNode: MyNode @semanticNonNull | ||
} | ||
|
||
"TODO" | ||
directive @semanticNonNull("TODO" levels: [Int!] = [ 0 ]) on FIELD_DEFINITION |