20 lines
384 B
Python
20 lines
384 B
Python
import graphene
|
|
from graphene import InputObjectType
|
|
|
|
from user.inputs import UserGroupInput
|
|
|
|
|
|
class RoomInput(InputObjectType):
|
|
title = graphene.String()
|
|
description = graphene.String()
|
|
user_group = UserGroupInput()
|
|
appearance = graphene.String()
|
|
|
|
|
|
class AddRoomArgument(RoomInput):
|
|
pass
|
|
|
|
|
|
class UpdateRoomArgument(RoomInput):
|
|
id = graphene.ID(required=True)
|