Skip to content

Instantly share code, notes, and snippets.

@nwillc
Created November 20, 2017 04:17
Show Gist options
  • Save nwillc/11e0a0d7bf70ec606a9f1ceca2f73452 to your computer and use it in GitHub Desktop.
Save nwillc/11e0a0d7bf70ec606a9f1ceca2f73452 to your computer and use it in GitHub Desktop.
Companies GraphQL IDL schema
schema {
query: QueryType
mutation: MutationType
}
type QueryType {
company( name: ID!) : Company
companies : [ Company ]
}
type MutationType {
company( name: ID! revenue: Int!): Company
companyDelete( name: ID! ): Boolean
}
type Company {
name: ID!
revenue: Int!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment