PREREQUISITES:
I’ve been testing the php template (with javascript react fe) https://github.com/Shopify/shopify-app-template-php
Everything is fine and I can see the app working in the dev store.
THE ISSUE:
What I can not really understand is the api call made through react AppQuery: it calls (POST) /api/products/count for getting the total product count and supposedly /api/products for creating new products.
to me it does not look neither REST nor graphql: and I do not see any custom api endpoint built inside the app.
am I missing something with AppQuery? it’s pretty new for me but I do not see how the api call is performed.
attached the code snippet from source at https://github.com/Shopify/shopify-frontend-template-react/blob/800eb8691cb9585e6f14e8fb940d87ebe0f34e9d/components/ProductsCard.jsx
thanks
