Ah, it would be the GraphQL schema object. The example provided assumes usage of graphene, so the following would be a simple example of the schema:
graphene
from graphene import ObjectType, String, Schema class Query(ObjectType): hello = String() def resolve_hello(root, info, name): return f'Hello {name}!' my_schema = Schema(query=Query)
You would then pass my_schema into the Client.
my_schema
You can read more about graphene here.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ah, it would be the GraphQL schema object. The example provided assumes usage of
graphene
, so the following would be a simple example of the schema:You would then pass
my_schema
into the Client.You can read more about graphene here.