Skip to content

Instantly share code, notes, and snippets.

@nicolasdao
Created August 7, 2017 12:18
Show Gist options
  • Save nicolasdao/31251d1c589789175cb8fb5737e5a3b2 to your computer and use it in GitHub Desktop.
Save nicolasdao/31251d1c589789175cb8fb5737e5a3b2 to your computer and use it in GitHub Desktop.
const schema = `
type Node {
id: ID!
creationDate: String
}
type Person inherits Node {
firstname: String!
middlename: String
lastname: String!
age: Int!
gender: String
}
type Teacher inherits Person {
title: String!
}
type Student inherits Person {
nickname: String!
}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment