Skip to content

Field 'discountsAllocatorFunctionRegister' doesn't exist on type 'Mutation' #474

Open
@mahdi-akbary

Description

@mahdi-akbary

I am trying to use shopify discount allocator function from https://shopify.dev/docs/api/functions/reference/discounts-allocator
and in order to do it, I have to register my function using this mutation from https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionRegister.

mutation discountsAllocatorFunctionRegister($functionExtensionId: String!) { discountsAllocatorFunctionRegister(functionExtensionId: $functionExtensionId) { success userErrors { field message } } }

but it gives error GraphqlQueryError: Field 'discountsAllocatorFunctionRegister' doesn't exist on type 'Mutation' and even used the shopify Graphql app too but doesn't recognize the discountsAllocatorFunctionRegister to exist on type 'Mutation'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions