mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-18 12:12:41 +03:00
document ththat one should use defer instead of values with queysets and DjangoObjectTypes
This commit is contained in:
parent
38fc15c481
commit
8074dfa7c0
|
@ -282,6 +282,13 @@ of Django's ``HTTPRequest`` in your resolve methods, such as checking for authen
|
||||||
return Question.objects.none()
|
return Question.objects.none()
|
||||||
|
|
||||||
|
|
||||||
|
DjangoObjectTypes
|
||||||
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
A Resolver that maps to a defined `DjangoObjectType` should only use methods that return a queryset.
|
||||||
|
Queryset methods like `values` will return dictionaries, use `defer` instead.
|
||||||
|
|
||||||
|
|
||||||
Plain ObjectTypes
|
Plain ObjectTypes
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user