Skip to content

Instantly share code, notes, and snippets.

@chris001177
Created June 22, 2019 19:05
Show Gist options
  • Select an option

  • Save chris001177/01873224a326bfbd36b23c48c4e2210c to your computer and use it in GitHub Desktop.

Select an option

Save chris001177/01873224a326bfbd36b23c48c4e2210c 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