We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83c8094 commit c54fd0eCopy full SHA for c54fd0e
packages/multipart/src/index.ts
@@ -1,5 +1,6 @@
1
import { definePlugin } from 'villus';
2
import { extractFiles } from 'extract-files';
3
+import { normalizeQuery } from '../../shared/src';
4
5
export function multipart() {
6
return definePlugin(function multipartPlugin(context) {
@@ -16,7 +17,7 @@ export function multipart() {
16
17
}
18
19
const body = new FormData();
- body.append('operations', JSON.stringify({ query: operation.query, variables }));
20
+ body.append('operations', JSON.stringify({ query: normalizeQuery(operation.query), variables }));
21
22
const map: Record<number, string[]> = {};
23
let i = 0;
0 commit comments