I'm currently working on my first Shopify app and it requires bulk importing products. I'm looking around the web, and it appears there's no query to do bulk importing. It also looks like if I want to add the price to the items I import, I'll have to make a separate query from the one that creates the products in the first place.
I'm thinking the easier way would be to create a .csv but there's no query to upload a .csv either.
Has anyone tackled something like this before, and what's the usual way to go about it?
If not supported then standard graphql possibilities [possibly (not tested)] can (should be possible) be applied:
You can make multiple queries/mutations within one request.
Multiple (aliased) chains of mutations:
Probably you can use arguments used for element creation (one mutation) to search item for following mutation (if id not required).
You can try/check this scenario in the playground.
Of course in this case you need to construct query dynamically (usually not advised) in the app. You will need dynamic aliases and input variable names.