It’s me again. To put you in context, in our system we manage only one price for each product, in all of the warehouses. Now we are implementing CRUD operations of our products that have to be integrated with Shiphero.
But in Shiphero, the prices are stored in the warehouse products. So, what we are doing is that when we create a product, then we also create the respective warehouse products, all with the same price.
The problem is when we want to do update operations. Shiphero API requires that each warehouse product has to be updated in a single GraphQL mutation. But with so many Warehouses, making that many requests to the API can be too unefficient.
I know that in GraphQL one can send many queries in one HTTP request, so I think this is the best option for me. I was trying to do that, the problem is that graphql is throwing me an error because I’m making duplicated mutations (see pictures).
I believe that we have to use GraphQL aliases, but I’m not an expert in this. Does anyone know how to do that?
This works (one warehouse):
This doesn’t work (two warehouses):