Closed chrisdevereux closed 12 months ago
oh! thank you for this, @chrisdevereux.
I believe that comes from #336. Any chance you can test with ref="4e4d063fbfe0b99080cc7e95e34a9c4a6b9fb63c"
?
yep, that resolves it!
The issue was in the fact we were registering the generic ObjectType
as a mutation mixin
@hooks.register("register_schema_mutation")
def register_schema_mutation(mutation_mixins):
mutation_mixins += [ObjectType]
ObjectType
by itself doesn't define any fields..
Apologies if this is already known about - just thought I'd raise in case it isn't as I saw that a new version is due to be released soon. On the current main branch, grapple fails to retreive the schema or perform any queries.
These all return a graphql error: "Type Mutation must define one or more fields."
Can provide a more detailed reproduction if needed. It's a more or less fresh project with the following relevant package versions:
Adding the following to wagtail_hooks.py suppresses the issue: