A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I have some questions about discounts in GraphQL Admin API. The discounts have two type: automatic discount and code discount. I want to know whether the id of these two type will conflict in same store? I mean whether the situation below will happen?
"gid:\/\/shopify\/DiscountAutomaticNode\/12345"
"gid:\/\/shopify\/DiscountCodeNode\/12345"
Solved! Go to the solution
This is an accepted solution.
Hey @Anna55 ,
object IDs will be unique across all internal components, so you shouldn't ever encounter a situation where any two things (like a product and a customer, or an automatic discount and a manual discount) share the same ID.
Best,
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hey @Anna55 ,
object IDs will be unique across all internal components, so you shouldn't ever encounter a situation where any two things (like a product and a customer, or an automatic discount and a manual discount) share the same ID.
Best,
To learn more visit the Shopify Help Center or the Community Blog.