from graphene import relay
from graphene_django import DjangoObjectType

from books.models import ModuleCategory


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