We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c083c5 commit 7c3a86cCopy full SHA for 7c3a86c
packages/aws-appsync/src/link/complex-object-link.ts
@@ -37,7 +37,7 @@ export const complexObjectLink = (credentials) => {
37
38
const { operation: operationType } = getOperationDefinition(operation.query);
39
const isMutation = operationType === 'mutation';
40
- const objectsToUpload = isMutation && findInObject(operation.variables);
+ const objectsToUpload = isMutation ? findInObject(operation.variables) : {};
41
42
let uploadPromise = Promise.resolve(operation);
43
0 commit comments