Home > @vue-storefront/magento-api > customMutation

customMutation variable

Signature:

_default: <MUTATION = any, MUTATION_VARIABLES = any>(context: Context, { mutation, mutationVariables, fetchPolicy, customHeaders, }: {
    mutation: string;
    mutationVariables: MUTATION_VARIABLES;
    fetchPolicy?: Extract<FetchPolicy, 'network-only' | 'no-cache'>;
    customHeaders?: CustomHeaders;
}) => Promise<FetchResult<MUTATION, Record<string, any>, Record<string, any>>>