Created
June 22, 2019 19:05
-
-
Save chris001177/01873224a326bfbd36b23c48c4e2210c to your computer and use it in GitHub Desktop.
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
| const typeDefs = gql` | |
| type Name { | |
| title: String, | |
| first: String, | |
| last: String, | |
| } | |
| type Location { | |
| street: String | |
| city: String | |
| state: String | |
| postcode: String | |
| } | |
| type Picture { | |
| large: String | |
| medium: String | |
| thumbnail: String | |
| } | |
| type User { | |
| gender: String | |
| name: Name | |
| location: Location | |
| email: String | |
| phone: String | |
| cell: String | |
| picture: Picture | |
| nat: String | |
| } | |
| type Query { | |
| getUser: User | |
| getUsers(people: Int): [User] | |
| } | |
| `; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment