BulkOperation
An asynchronous long-running operation to fetch data in bulk or to bulk import data.
Bulk operations are created using the or
mutation. After
they are created, clients should poll the
status
field for updates. When , the
url
field contains
a link to the data in JSONL format.
Refer to the bulk operations guide for more details.
Anchor to FieldsFields
- Anchor to completedAtcompleted•
At When the bulk operation was successfully completed.
- Anchor to createdAtcreated•
At DateTime! non-null When the bulk operation was created.
- Anchor to errorCodeerror•
Code Error code for failed operations.
- Anchor to fileSizefile•
Size File size in bytes of the file in the
url
field.- •ID!non-null
A globally-unique ID.
- Anchor to objectCountobject•
Count UnsignedInt64! non-null A running count of all the objects processed. For example, when fetching all the products and their variants, this field counts both products and variants. This field can be used to track operation progress.
- Anchor to partialDataUrlpartial•
Data Url The URL that points to the partial or incomplete response data (in JSONL format) that was returned by a failed operation. The URL expires 7 days after the operation fails. Returns
null
when there's no data available.- Anchor to queryquery•String!non-null
GraphQL query document specified in
.
- Anchor to rootObjectCountroot•
Object Count UnsignedInt64! non-null A running count of all the objects that are processed at the root of the query. For example, when fetching all the products and their variants, this field only counts products. This field can be used to track operation progress.
- Anchor to statusstatus•Bulk
Operation non-nullStatus! Status of the bulk operation.
- Anchor to typetype•Bulk
Operation non-nullType! The bulk operation's type.
- •
The URL that points to the response data in JSONL format. The URL expires 7 days after the operation completes.
Map
No referencing types
Anchor to QueriesQueries
- •query
Returns the current app's most recent BulkOperation. Apps can run one bulk query and one bulk mutation operation at a time, by shop.
BulkOperation Queries
Queried by
Anchor to MutationsMutations
- •mutation
Starts the cancelation process of a running bulk operation.
There may be a short delay from when a cancelation starts until the operation is actually canceled.
- •mutation
Creates and runs a bulk operation mutation.
To learn how to bulk import large volumes of data asynchronously, refer to the bulk import data guide.
- •mutation
Creates and runs a bulk operation query.
See the bulk operations guide for more details.