mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
Merge pull request #584 from vpoulailleau/patch-1
fix documentation to access to the request in Django
This commit is contained in:
commit
a8a6555537
|
@ -48,7 +48,7 @@ Mutations can also accept files, that's how it will work with different integrat
|
|||
@classmethod
|
||||
def mutate_and_get_payload(cls, root, info, **input):
|
||||
# When using it in Django, context will be the request
|
||||
files = context.FILES
|
||||
files = info.context.FILES
|
||||
# Or, if used in Flask, context will be the flask global request
|
||||
# files = context.files
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user