import graphene
from graphene_gae import NdbObjectType
from user import User
class UserType(NdbObjectType):
class Meta:
model = User
class Query(graphene.ObjectType):
all_users = graphene.List(UserType)
def resolve_all_users(self, info):
return User.query()
schema = graphene.Schema(query=Query)
Hi,
I try to develop simple
GraphQL
withgraphene-gae
usingflask
framework. But I'm getting error when I try to execute the query. The query is:and the error message is
Expected value of type \"UserType\" but got: User
Here is my snippet of code
user.py
schema.py
I'm using
graphene-gae 2.0.dev2017073101