Пример #1
0
 def wrap_resolved(self, value, instance, args, info):
     schema = info.schema.graphene_schema
     return lazy_map(value, self.get_object_type(schema))
Пример #2
0
 def resolve(self, instance, args, info):
     schema = info.schema.graphene_schema
     resolved = super(LazyListField, self).resolve(instance, args, info)
     return lazy_map(resolved, self.get_object_type(schema))