18 lines
341 B
Python
18 lines
341 B
Python
import graphene
|
|
from graphene import InputObjectType
|
|
|
|
|
|
class RoomInput(InputObjectType):
|
|
title = graphene.String()
|
|
description = graphene.String()
|
|
user_group = graphene.ID()
|
|
appearance = graphene.String()
|
|
|
|
|
|
class AddRoomArgument(RoomInput):
|
|
pass
|
|
|
|
|
|
class UpdateRoomArgument(RoomInput):
|
|
id = graphene.ID(required=True)
|