Created
December 9, 2016 06:39
-
-
Save lu911/ced01cf3e44b04729dc6f2cbd602c21b to your computer and use it in GitHub Desktop.
Graphql Query Execute with Fragment
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
| fragment userAllFields on User { | |
| id | |
| name | |
| age | |
| gender | |
| } | |
| query { | |
| users { | |
| ...userAllFields | |
| } | |
| superUser: user(id: 1) { | |
| ...userAllFields | |
| } | |
| staffUser: user(id: 2) { | |
| ...userAllFields | |
| } | |
| user(id: 1) { | |
| id | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment