Answer the question
In order to leave comments, you need to log in
How to create a type like Query in GraphQL-Java?
How to create a type like Query in GraphQL-Java?
Guys who worked with GraphQL. Is it possible to create an object of type Query only with a different name?
Our stack:
Spring Boot
java
com.graphql-java-kickstart:graphql-spring-boot-starter
This is what the documentation and schema looks like now:
```
Query
employeeSearch(searchRequest: SearchInput): EmployeeSearchResult
vehicleSearch(searchRequest: SearchInput): VehicleSearchResult
Vehicle
Employee
Vehicle
vehcile(id: ID!): Vehicle
search(searchRequest: SearchInput): VehicleSearchResult
create(input: CreateVehicleInput): Vehicle
Employee
employee(id: ID!): Employee
search(searchRequest: SearchInput): EmployeeSearchResult
create(input: CreateEmployeeInput): Employee
type Vehicle {
employee(id: ID!): Employee
search(searchRequest: SearchInput): VehicleSearchResult
create(input: CreateVehicleInput): Vehicle
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question