-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field 'discountsAllocatorFunctionRegister' doesn't exist on type 'Mutation' #474
Comments
Also getting this error. |
++ |
I think this api is just available on unstable version. But when I run it on shopify Graphql app, I get access deny issue, need scope |
++ |
It's only available for unstable version of the api. But how do we use the unstable version? doesn't seem to work. |
This Function API is available only in stores with the Discounts Allocator developer preview here is the link: https://shopify.dev/docs/api/functions/reference/discounts-allocator |
@mahdi-akbary how do you activate the Discounts Allocator developer preview? |
Ok I get it, it can't be added to an actual store only preview modes. Got it. |
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'The text was updated successfully, but these errors were encountered: