Closed ALeksandr-Fuze closed 1 year ago
I found a solution. Needs to create a combined Query object inside the main module like:
class Query(Type):
companies = Field(AvailableCompanies, graphql_name="availableCompanies")
use_company = Field(UseCompany, graphql_name="useCompany", args=ArgDict(no=int))
class GraphQueries:
def company_query(self):
operation = Operation(Query)
...
def company_items_query(self):
operation = Operation(Query)
...
Needs help with how to support a different query types.
As an example I have 2 different queries that have different structure:
company
company_items
main
But running the main file I get: