Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Last active October 25, 2018 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaraVieira/319be8edd36b459ed9049983c8a4ac55 to your computer and use it in GitHub Desktop.
Save SaraVieira/319be8edd36b459ed9049983c8a4ac55 to your computer and use it in GitHub Desktop.
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