Each
GraphQL service has a query type. Query types define an entry point of every
GraphQL query.
Example
type Query
{
employees: [Employee]
}
Complete
GraphQL schema looks like below
type Query { employees: [Employee] } type Employee { id: Int firstName: String lastName: String email: String permanentAddress: Address temporaryAddress: Address department: Department } type Address { id: Int city: String state: String country: String } type Department{ id: Int departmentName: String }
No comments:
Post a Comment