skillbox/server/rooms/inputs.py

18 lines
335 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 RoomAddInput(RoomInput):
pass
class RoomChangeInput(RoomInput):
id = graphene.ID(required=True)