cartTransforms query returning empty #266
Closed
BrandoCommando
started this conversation in
Feedback: Cart Transform API
Replies: 1 comment
-
Ok I think I figured out the problem. Even though the function is owned by my app, when I ran cartTransformCreate with the GraphiQL app, the cartTranform object was then only visible to that app. I tested this with another cartTransformCreate mutation, this time using my app's access token, and this time I was able to see the object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I query cartTransforms in the Shopify GraphiQL App on my test store, it returns my installed Cart Transform as expected. But when I run the same query directly through the App (using the out-of-the box @shopify/shopify-app-express module in JS), I get an empty array. I have confirmed "write_products" is a selected access scope.
I've also tried running the GraphQL API directly with Curl and pretty much all scopes selected on a Custom App (using unstable version), and I get the same results (empty array).
On the topic of GraphQL management of Cart Transforms, I noticed cartTransformCreate does not support metafields like the Discount function mutations. It would be nice if this was added. I was able to get a metafield added by running metafieldSet with an ownerId of the cart transform function (all done via GraphiQL app), but I had to use a namespace that would be visible to other apps.
Also, "shopifyFunctions" is also returning an empty array thru my app when GraphiQL is returning all installed function extensions correctly.
Beta Was this translation helpful? Give feedback.
All reactions