You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to get graphene-django-optimizer to work with our setup. Most of our queries start from a query { me { ... } } root. As such the implementation of the Query is:
classQuery(graphene.ObjectType):
me=graphene.Field(UserNode)
@classmethoddefresolve_me(cls, root, info):
user=info.context.userifnotuser.is_authenticated:
raiseException("Authentication credentials were not provided")
returnuser
We are not able to figure out how to get the subtree of such an entry point to optimize. Simply extending UserNode from OptimizedDjangoObjectType does not make any difference in the queries being run. Any idea on how we could utilize graphene-django-optimizer?
The text was updated successfully, but these errors were encountered:
We are trying to get
graphene-django-optimizer
to work with our setup. Most of our queries start from aquery { me { ... } }
root. As such the implementation of theQuery
is:or another example:
We are not able to figure out how to get the subtree of such an entry point to optimize. Simply extending
UserNode
fromOptimizedDjangoObjectType
does not make any difference in the queries being run. Any idea on how we could utilizegraphene-django-optimizer
?The text was updated successfully, but these errors were encountered: