Created
April 15, 2020 19:22
-
-
Save OrlandoST/b6d6bfdd2692386d61ab006175bf56ed to your computer and use it in GitHub Desktop.
graphQL query examlres
This file contains hidden or 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
query{ | |
reference { | |
list(type: "color"){ | |
items{ | |
name | |
type | |
sort | |
} | |
} | |
} | |
} | |
mutation ($ref: ReferenceUpdateInput){ | |
reference { | |
update(input: $ref){ | |
...on Reference { | |
id | |
name | |
sort | |
} | |
...on ValidationErrors {validationErrors {field messages}} | |
...on Errors {errors{message}} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment