Discussing Shopify Functions development, deployment, and usage in Shopify apps.
Hello I'm developing the cart and checkout Shopify function and using the variables in input queries
I'm not finding proper documentation, Currently I'm following this documentation https://shopify.dev/docs/apps/functions/input-output/variables-queries
I want the same functionality as in the documentation. Which owner id I should have to pass here?
I have followed these steps as per documentation:
1.
2.
3.
The product is in the collection but I'm not getting true in the response of inAnyCollection
also I have get the metafields in the response you can see the collection values of the metafields
I want to set metafields of collection list for the cart and checkout function in the background, in the app and want to check that metafields in my cart checkout function as a variable
I have followed the documentation proper but not getting correct response
Please suggest me if my doing wrong, and which type of owner id should pass in the metafieldsSet mutation
Hi @sbdev --
As this appears to be a validation function, the owner would be the validation object.
https://shopify.dev/docs/api/admin-graphql/2024-04/queries/validation
https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/validationCreate
https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/validationUpdate
If you create a UI extension for your validation, you can add the metafield within that as well.
-Nick
Nick Wesselman | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog