示例#1
0
class UpdateClientInput(InputObjectType):
    email = String(required=True)
    password = String()
    type = String()
    is_active = Boolean()
    is_staff = Boolean()
    is_superuser = Boolean()
    last_login = String()
示例#2
0
class CreateClientInput(InputObjectType):
    """
    Clase que encapsula los datos necesarios para la 
    creacion de clientes
    """
    email = String(required=True)
    password = String(required=True)
    type = String(required=True)
    is_active = Boolean(required=True)
    is_staff = Boolean(required=True)
    is_superuser = Boolean(required=True)
    last_login = String()
示例#3
0
class UpdateClientInput(InputObjectType):
    """
    Clase que encapsula los datos necesarios
    para la actualización de cliente
    """

    id = ID(required=True)
    password = String()
    is_active = Boolean()
示例#4
0
class SaveStudentData(Mutation):
    class Arguments:
        name = String()
        age = Int()
        studentid = Int()

    ok = Boolean()

    def mutate(self, info, name, age, studentid):
        ok = False
        return SaveStudentData(ok=ok)
示例#5
0
class CreateEnterpriseInput(InputObjectType):
    """
    Clase que encapsula los datos necesarios
    para la creación de establecimientos
    """

    name = String(required=True)
    historical_review = String()
    location = String(required=True)
    business_hours = String()
    status = Boolean()
    # Relaciones
    image_id = ID()
示例#6
0
class CreateClientInput(InputObjectType):
    """
    Clase que encapsula los datos necesarios para la 
    creacion de clientes
    """

    email = String(required=True)
    password = String(required=True)
    is_alternative = Boolean(required=True)
    names = String(required=True)
    lastnames = String(required=True)
    location = String(required=True)
    telephone = String(required=True)
    license_plate = String()