How to return response that downloads file using the Storage facade? #1160
Answered
by
mfn
drewgallagher
asked this question in
Q&A
-
Is there a way to return from GraphQL in a mutation or query a response that downloads a file using the storage facade? |
Beta Was this translation helpful? Give feedback.
Answered by
mfn
Dec 3, 2024
Replies: 1 comment 2 replies
-
You can try and return anything you want, but if you use a proper GraphQL client, it probably won't be happy about it (it expects a certain JSON response format). I think the proper most way is to return an URL to your other endpoint to stream that file. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes