Last active
October 25, 2018 09:52
-
-
Save SaraVieira/319be8edd36b459ed9049983c8a4ac55 to your computer and use it in GitHub Desktop.
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
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