For pulling all of the products, a bulk (background) query is also an option. It’s more reliable but the delay is less predictable.
Perform bulk operations with the GraphQL Admin API (shopify.dev)
Shopify is also strongly suggesting this as the preferred way to get all products.