Move news query from public to private apollo client
This commit is contained in:
parent
26cda08d94
commit
57698e577e
|
|
@ -12,7 +12,6 @@ export default {
|
||||||
update(data) {
|
update(data) {
|
||||||
return this.$getRidOfEdges(data).newsTeasers;
|
return this.$getRidOfEdges(data).newsTeasers;
|
||||||
},
|
},
|
||||||
client: 'publicClient',
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ from assignments.schema.queries import AssignmentsQuery, StudentSubmissionQuery
|
||||||
from basicknowledge.queries import BasicKnowledgeQuery
|
from basicknowledge.queries import BasicKnowledgeQuery
|
||||||
from books.schema.mutations import BookMutations
|
from books.schema.mutations import BookMutations
|
||||||
from books.schema.queries import BookQuery
|
from books.schema.queries import BookQuery
|
||||||
|
from news.schema import AllNewsTeasersQuery
|
||||||
from oauth.mutations import OauthMutations
|
from oauth.mutations import OauthMutations
|
||||||
from notes.mutations import NoteMutations
|
from notes.mutations import NoteMutations
|
||||||
from objectives.mutations import ObjectiveMutations
|
from objectives.mutations import ObjectiveMutations
|
||||||
|
|
@ -26,7 +27,7 @@ from users.mutations import ProfileMutations
|
||||||
|
|
||||||
|
|
||||||
class CustomQuery(UsersQuery, AllUsersQuery, ModuleRoomsQuery, RoomsQuery, ObjectivesQuery, BookQuery, AssignmentsQuery,
|
class CustomQuery(UsersQuery, AllUsersQuery, ModuleRoomsQuery, RoomsQuery, ObjectivesQuery, BookQuery, AssignmentsQuery,
|
||||||
StudentSubmissionQuery, BasicKnowledgeQuery, PortfolioQuery, SurveysQuery, graphene.ObjectType):
|
StudentSubmissionQuery, BasicKnowledgeQuery, PortfolioQuery, SurveysQuery, AllNewsTeasersQuery, graphene.ObjectType):
|
||||||
node = relay.Node.Field()
|
node = relay.Node.Field()
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import graphene
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from graphene_django.debug import DjangoDebug
|
from graphene_django.debug import DjangoDebug
|
||||||
|
|
||||||
from news.schema_public import AllNewsTeasersQuery
|
|
||||||
from users.mutations_public import UserMutations
|
from users.mutations_public import UserMutations
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,7 +11,7 @@ class PublicMutation(UserMutations, graphene.ObjectType):
|
||||||
debug = graphene.Field(DjangoDebug, name='_debug')
|
debug = graphene.Field(DjangoDebug, name='_debug')
|
||||||
|
|
||||||
|
|
||||||
class PublicQuery(AllNewsTeasersQuery, graphene.ObjectType):
|
class PublicQuery(graphene.ObjectType):
|
||||||
node = graphene.relay.Node.Field()
|
node = graphene.relay.Node.Field()
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue