Download Bulk Operation Graphql

New Member
1 0 0

I am creating an app, and I need to download orders/customers/etc, I see there is a bulk operation for graphql, but what I don't understand is if I should be making this request in the client react code or on my apps server?

This tutorial makes queries in the react client, but if I am performing a long running operation I am worried that those components will be torn down and the operation cancelled. Or if the merchant closes their shopify page then I can't make requests from a react ui.

How do I do a long running graphql call, should it be using the apollo client in the server code, or is it ok to use this react-apollo client?

I am relatively new to shopify and graphql so I am unsure about best practices in regards to this.