-
-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Test for parsing nested imports with interfaces
- Loading branch information
Showing
4 changed files
with
38 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
19 changes: 19 additions & 0 deletions
19
packages/load/tests/loaders/schema/test-files/nested-imports/interfaces.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,19 @@ | ||
interface Animal { | ||
legs: Int! | ||
} | ||
|
||
type Cat implements Animal { | ||
color: String! | ||
legs: Int! | ||
} | ||
|
||
type Dog implements Animal { | ||
legs: Int! | ||
type: String! | ||
} | ||
|
||
union Pet = Cat | Dog | ||
|
||
type Foo { | ||
pet: Pet | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/load/tests/loaders/schema/test-files/nested-imports/query-interfaces.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,5 @@ | ||
# import Foo from './interfaces.graphql' | ||
|
||
type Query { | ||
foo: Foo | ||
} |
File renamed without changes.