23 lines
595 B
Python
23 lines
595 B
Python
import graphene
|
|
from django.conf import settings
|
|
from graphene_django.debug import DjangoDebug
|
|
|
|
from news.schema_public import AllNewsTeasersQuery
|
|
from users.mutations_public import UserMutations
|
|
|
|
|
|
class PublicMutation(UserMutations, graphene.ObjectType):
|
|
|
|
if settings.DEBUG:
|
|
debug = graphene.Field(DjangoDebug, name='_debug')
|
|
|
|
|
|
class PublicQuery(AllNewsTeasersQuery, graphene.ObjectType):
|
|
node = graphene.relay.Node.Field()
|
|
|
|
if settings.DEBUG:
|
|
debug = graphene.Field(DjangoDebug, name='_debug')
|
|
|
|
|
|
schema = graphene.Schema(mutation=PublicMutation, query=PublicQuery)
|