Skip to content

Instantly share code, notes, and snippets.

@lucasconstantino
Created March 29, 2017 18:22
Show Gist options
  • Save lucasconstantino/96867b62c7f8e914fa8af1af54d55a76 to your computer and use it in GitHub Desktop.
Save lucasconstantino/96867b62c7f8e914fa8af1af54d55a76 to your computer and use it in GitHub Desktop.
const typeDefs = `
type Post {
id: Int!
title: String
body: String
}
type User {
id: Int!
username: String
email: String
}
type Query {
posts: [Post]
post (id: Int!): Post
users: [User]
user: User
}
schema {
query: Query
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment