How to use the aws-appsync.buildMutation function in aws-appsync

To help you get started, we’ve selected a few aws-appsync examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awslabs / aws-mobile-appsync-sdk-js / packages / aws-appsync-react / src / offline-helpers.tsx View on Github external
[mutationName]: (variables) => {
                    return props.mutate({
                        variables,
                        ...(buildMutation(client, mutation, variables, cacheUpdateQuery, typename, idField, operationType) as MutationOpts),
                    });
                }
            }