Skip to content

Instantly share code, notes, and snippets.

@fernandodof
Created March 1, 2020 17:14
Show Gist options
  • Save fernandodof/1e3c80e3e9768efbd2beef718aac5f2f to your computer and use it in GitHub Desktop.
Save fernandodof/1e3c80e3e9768efbd2beef718aac5f2f to your computer and use it in GitHub Desktop.
type User {
id: ID!,
name: String!,
description: String,
email: String!,
age: Int,
followers: [User]
}
type Tweet {
id: ID!
text: String!,
userId: String!
}
type Query {
users: [User],
user(id: ID!): User,
tweets(userId: ID!, last: Int): [Tweet]
followers: [User]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment