I have the following schema:
class Query(graphene.ObjectType):
all_questionnaires = DjangoFilterConnectionField(QuestionnaireType)
I got the error when running the tests
TypeError: Query fields cannot be resolved. The type QuestionnaireType doesn't have a connection
What can be?
You probably need to define a Connection
, because for graphene>=2
it is not done implicitly.
class QuestionnaireConnection(graphene.relay.Connection):
class Meta:
node = QuestionnaireType