Bulk Operation
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•Date
At Time When the bulk operation was successfully completed.
- Anchor to createdAtcreated•Date
At Time!non-null When the bulk operation was created.
- Anchor to errorCodeerror•Bulk
Code Operation Error Code Error code for failed operations.
- Anchor to fileSizefile•Unsigned
Size Int64 File size in bytes of the file in the
url
field.- •ID!non-null
A globally-unique ID.
- Anchor to objectCountobject•Unsigned
Count Int64!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•URL
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•Unsigned
Object Count Int64!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 Status!non-null Status of the bulk operation.
- Anchor to typetype