-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize retrieving a single object #46
Comments
Interested to know the proposed solution here as well, this seems like it should work ok. Not sure if it could be supported, but obviously preferred developer experience would likely be:
which currently raises |
That's because |
@stickperson Yep, makes sense, I am using your workaround for now 👍 |
Yes, the first post is the recommended approach. It's been a long time since I used Django, but from what I remember, when using |
I'm following the graphene-django tutorial and got up to retrieving a single object. The README here does not mention how optimization would work here.
gql_optimizer.query
expects a queryset. As a workaround, I'm using:Is this the recommended approach?
The text was updated successfully, but these errors were encountered: