Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add __token metafield to schema definition
Reviewed By: kassens Differential Revision: D24509450 fbshipit-source-id: fc5c173e784690e7b753a4f811cc44a0108da06f
- Loading branch information
1 parent
0b1a756
commit 018af6d
Showing
9 changed files
with
124 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
compiler/crates/graphql-ir/tests/parse/fixtures/fetch_token_with_arguments.invalid.expected
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,13 @@ | ||
==================================== INPUT ==================================== | ||
# expected-to-throw | ||
fragment Foo on User { | ||
__token(arg: 1) | ||
} | ||
==================================== ERROR ==================================== | ||
✖︎ Unexpected arguments on '__token' field | ||
|
||
fetch_token_with_arguments.invalid.graphql:3:10 | ||
2 │ fragment Foo on User { | ||
3 │ __token(arg: 1) | ||
│ ^^^^^^^^ | ||
4 │ } |
4 changes: 4 additions & 0 deletions
4
compiler/crates/graphql-ir/tests/parse/fixtures/fetch_token_with_arguments.invalid.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 @@ | ||
# expected-to-throw | ||
fragment Foo on User { | ||
__token(arg: 1) | ||
} |
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
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
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