The nightly export job: the submission mutation and the poll that follows. Trace it, then answer.
mutation {
bulkOperationRunQuery(
query: """
{
products {
edges {
node {
id
title
variants {
edges {
node {
id
sku
}
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
# Minutes later, poll until status is COMPLETED,
# then download the JSONL file at url:
query {
bulkOperation(id: "gid://shopify/BulkOperation/720918") {
id
status
objectCount
url
}
}