-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: James Phillips <[email protected]>
- Loading branch information
1 parent
5401838
commit 4e6a5ac
Showing
8 changed files
with
719 additions
and
10 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 |
---|---|---|
|
@@ -24,3 +24,7 @@ indent_size = 2 | |
[*.proto] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.graphql] | ||
indent_style = space | ||
indent_size = 2 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,30 @@ | ||
""" | ||
The root query for implementing GraphQL mutations. | ||
""" | ||
type Mutation { | ||
"Creates a new check." | ||
createCheck(input: CreateCheckInput!): CreateCheckPayload | ||
} | ||
|
||
# | ||
# CreateCheckMutation | ||
# | ||
|
||
input CreateCheckInput { | ||
"A unique identifier for the client performing the mutation." | ||
clientMutationId: String | ||
|
||
"namespace the resulting resource will belong to" | ||
ns: Namespace = {organization: "default", environment: "default"} | ||
|
||
name: String! | ||
command: String! | ||
} | ||
|
||
type CreateCheckPayload { | ||
"A unique identifier for the client performing the mutation." | ||
clientMutationId: String | ||
|
||
"The new check." | ||
check: Check! | ||
} |
Oops, something went wrong.