We have use case (graphql endpoint) when one endpoint accepts json and multipart payloads when we need send file along with json.
Issue is that payload - output option behave significantly different for normal and multipart payloads.
With file output option we don't want to save json payload to file, only real files in multipart situation. Same with streams we need only files as streams and not json payload when its not multi part situation.
Is there way to achieve that with hapi?
We have use case (graphql endpoint) when one endpoint accepts json and multipart payloads when we need send file along with json.
Issue is that
payload - outputoption behave significantly different for normal and multipart payloads.With
fileoutput option we don't want to save json payload to file, only real files in multipart situation. Same with streams we need only files as streams and not json payload when its not multi part situation.Is there way to achieve that with hapi?