Skip to content

Instantly share code, notes, and snippets.

@MafaldaLandeiro
Created December 3, 2020 12:35
Show Gist options
  • Select an option

  • Save MafaldaLandeiro/970b2a1c50d4e20457685c1b58979c51 to your computer and use it in GitHub Desktop.

Select an option

Save MafaldaLandeiro/970b2a1c50d4e20457685c1b58979c51 to your computer and use it in GitHub Desktop.
GraphQL schema of CompanyHumanResourcesAPI
type HumanResource {
id: ID!
name: String!
age: Int!
category: String
salary: Float
companyId: ID!
}
# The Root Query for the application
type Query {
getHumanResourceByName(name:String!): HumanResource
getAllHumanResources: [HumanResource]
}
# The Root Mutation for the application
type Mutation {
addHumanResource(name: String!, age: Int!, category: String, salary: Float, companyId: ID!) : HumanResource
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment