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
{{ message }}
Repository navigation
Add tempfile._TemporaryFileWrapper to transport file_classes #596
tempfile._TemporaryFileWrapper is the return type of the (confusingly named) function tempfile.NamedTemporaryFile. As such it's a useful class for sending files via GraphQL:
I realize the documentation only shows using FileVar with a file path as a string, but you should also be able to pass an opened file directly with FileVar(file) like it in this test
Activity
leszekhanusz commentedon Jun 29, 2026
Using a file directly in a variable is deprecated. The correct way to add a file now is to use
FileVar(see documentation)leszekhanusz commentedon Jun 29, 2026
I realize the documentation only shows using FileVar with a file path as a string, but you should also be able to pass an opened file directly with
FileVar(file)like it in this test