I'm the new guy in the GraphQL world and trying to find a way to have multiple Query types or how to split the Query type into multiple files.. I use Hot Chocolate for Asp.Net Core, and everything looks good and works. But what if I need to combine few queries in one GraphQL API? Some really unrelated stuff, f.e. DogsQuery and CarsQuery.
In Asp.Net, I write similar to:
public void ConfigureServices(IServiceCollection services)
{
services
.AddGraphQLServer()
//.AddQueryType<DogsQuery>()
.AddQueryType<CarsQuery>();
}
It works fine if I use only one Query class simultaneously (Dogs or Cars). But how to use both? I've searched a lot but can't find the answer.