Convert request bodies when changing type (#499)

This commit is contained in:
Gregory Schier authored and GitHub committed 2026-07-04 22:22:35 -07:00
1 parent e52853cc2d
commit eb2a2dd775
13 files changed
+1065 -151

No files matched your search

+1
View File
@@ -93,6 +93,7 @@ export async function convertToCurl(request: Partial<HttpRequest>) {
const body = {
query: request.body.query || "",
variables: maybeParseJSON(request.body.variables, undefined),
operationName: request.body.operationName || undefined,
};
xs.push("--data", quote(JSON.stringify(body)));
xs.push(NEWLINE);