graphql-python / graphene-gae

GraphQL Support for Google AppEngine [DEPRECATED - Looking for maintainers]
http://docs.graphene-python.org/projects/gae/en/latest/
BSD 3-Clause "New" or "Revised" License
117 stars 14 forks source link

NDBConnectionField #44

Closed steinnat closed 4 years ago

steinnat commented 5 years ago

Curious, is it possible to return a list in the resolver of a ndbConnectionField? It only lets me return a ndb.Query, I think this has to do with it needing ndb_iter()? Any clairification on this would be great!

class Query(graphene.ObjectType):
    properties = NdbConnectionField(SearchPropertyType, filter=graphene.Argument(Filters, required=False, default_value=None))

    def resolve_properties(self, info, **kwargs):
       list = ndb.get_mult(list_of_keys)
       return list