I was planning to migrate from Admin API to Graph QL bulk API export. I identified that many of the fields are missing in the Graph QL object. for example in Order table few of the missing fields are
number
order_number
processing_method
referring_site
source_name
token
cart_token
checkout_token
They are also not available In connected fields or connections of Order object in graph QL. Is there a way to get these fields?
The Admin GQL API supports the following filter directly on QueryRoot.orders:
source_name
cart_token
checkout_token
For referring_site, the CustomerVisit object (connected to the Order object via the firstVisit/lastVisit fields in the CustomerJourney object) contains the referrerUrl, in addition to more granular information about customer behaviour prior to ordering.
For processing_method, refer to the SuggestedOrderTransaction object and associated parentTransaction field. The information here is also more granular than the REST processing_method property.
For number/order_number, the GQL API doesn’t currently expose this, however the name field on the Order object functions similarly.
The Admin GQL API supports the following filter directly on QueryRoot.orders:> - source_name> - cart_token> - checkout_token
Error Message: “Invalid bulk query: Field ‘checkout_token’ doesn’t exist on type ‘Order’”
Thanks for replying, My use-case will only use updated_at as a filter. I want to fetch all the fields of Order table which Admin API returns through GraphQL Bulk API. Is this feasible? What are fields that GraphQL doesn’t support which are supported in Admin REST API with respect to the Order table?
I also found many of the fields missing in Order child tables that I have created. Some of them are
checkout_token isn’t available as a return node on Orders in the GraphQL Admin API, but it can be used to retrieve a specific order in this way.
There unfortunately isn’t a comprehensive list of the differences between the REST and GraphQL API, so I’d encourage you to explore the GraphQL API documentation further.