class Human(ObjectType): name = String() friends = String() @property def readonly_prop(self): return 'readonly' @property def write_prop(self): return self._write_prop @write_prop.setter def write_prop(self, value): self._write_prop = value
class Droid(Character): name = String() def resolve_name(self, *args): return 'My Droid' tag_resolver(resolve_name, 'test')
class Human(Character): '''Human description''' friends = String() class Meta: type_name = 'core_Human' @property def readonly_prop(self): return 'readonly' @property def write_prop(self): return self._write_prop @write_prop.setter def write_prop(self, value): self._write_prop = value
class Droid(Character): name = String()
class Character(Interface): '''Character description''' name = String() class Meta: type_name = 'core_Character'
class Pet(ObjectType): name = String()
class Human(ObjectType): name = String()
class Human(ObjectType): '''Human description''' name = String() friends = String()
class Human(ObjectType): name = String() friends = String()
class MyMutation(Mutation): '''MyMutation description''' class Input: arg_name = String() name = String()
class Input: arg_name = String()
class Query1(ObjectType): field1 = String() class Meta: abstract = True
class Character(Interface): name = String()
class Pet(ObjectType): type = String() def resolve_type(self, args, info): return 'Dog'
class InputCharacter(InputObjectType): '''InputCharacter description''' name = String()
class Character(Interface): '''Character description''' name = String()