It's possible to post graphql requests using form-data. In this case parsing the request body as JSON will fail.
Instead, if JSON.parse fails, we can fallback to checking the content-type header and choosing to parse as form-data using a new custom function that parses the payload.
It's possible to post graphql requests using form-data. In this case parsing the request body as JSON will fail.
Instead, if JSON.parse fails, we can fallback to checking the content-type header and choosing to parse as form-data using a new custom function that parses the payload.