Created
December 3, 2020 12:35
-
-
Save MafaldaLandeiro/970b2a1c50d4e20457685c1b58979c51 to your computer and use it in GitHub Desktop.
GraphQL schema of CompanyHumanResourcesAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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