from graphene import relay
from graphene_django import DjangoObjectType

from books.models import ModuleLevel


class ModuleLevelNode(DjangoObjectType):
    class Meta:
        model = ModuleLevel
        interfaces = (relay.Node,)
        only_fields = "__all__"
