-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/ parser supports directives, fixed implements and defaultValu…
…e on inputObjects (#282) * parse implements * lit Assignment * patterns inputValueDefinition * inputObjectTypeDefinition * add specs in type system * Type System * update TypeSystem * scalar * inputValue * Formalization * Formalization * Formalization * Formalization * patterns * keywords * refactor SDL to specifications * refactor SDL to specifications * Operation specifications * Formalize Operation * add directive to selectionField * arguments * arguments * fragment * fragment * Parser Supports directives on spread * Parser Supports directives on spread * Parser Supports directives on spread * optionalDirective * description * description * description * update terms description * description on Type * Type Descriptions * Type Descriptions * Type Descriptions * integrate type description * integrate type description * integrate type description * fix test 1 * fix tests * input Object Test * input Object Test * object field Test * fix object field descriptions * fix object field descriptions * add tests for descriptions * test directives * operationKind -> operationType * OperationKind -> OperationType * update changelog * add directive parsing tests for queries * update changelog
- Loading branch information
1 parent
5d59bf1
commit c26bc97
Showing
39 changed files
with
770 additions
and
473 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,88 @@ | ||
""" | ||
my interface description | ||
""" | ||
type Query { | ||
deity (name: [[[[[String!]]!]]], mythology: Realm): Deity! | ||
character (characterID: String! , age: Int ): Character! | ||
hero: Human! | ||
} | ||
|
||
""" | ||
my interface description | ||
""" | ||
interface MyInterface { | ||
""" | ||
interface field description | ||
""" | ||
name: String | ||
} | ||
|
||
|
||
type Mutation { | ||
createDeity (name: [[[[[String!]]!]]], mythology: String): Deity! | ||
createCharacter (realm: Realm! , id: String! ): Character! | ||
} | ||
|
||
""" | ||
my unon description | ||
""" | ||
union Character = Creature | Deity | Human | ||
|
||
"my mutation description" | ||
type Deity { | ||
fullName: String! | ||
power: Power | ||
} | ||
|
||
""" | ||
my mutation description | ||
some creature | ||
""" | ||
type Creature { | ||
name: String! | ||
realm: City! | ||
immortality: Boolean! | ||
} | ||
|
||
""" | ||
human | ||
ewrw | ||
""" | ||
type Human { | ||
humanName: String! | ||
lifetime: Lifetime! | ||
profession: Profession | ||
} | ||
|
||
|
||
enum Profession { | ||
Priest | ||
Farmer | ||
Artist | ||
} | ||
|
||
""" | ||
human | ||
ew jso | ||
ewrw | ||
""" | ||
input Realm { | ||
owner: String! | ||
age: Int | ||
realm: Realm | ||
profession: Profession | ||
} | ||
|
||
"ancient city" | ||
enum City { | ||
Athens | ||
Ithaca | ||
Sparta Troy | ||
} | ||
|
||
""" lifespan of mortal creatures """ | ||
scalar Lifetime | ||
|
||
|
||
scalar Power |
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
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
Oops, something went wrong.