--- title: bulkOperationRunQuery - GraphQL Admin description: |- Creates and runs a bulk operation query. See the [bulk operations guide](https://shopify.dev/api/usage/bulk-operations/queries) for more details. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/bulkOperationRunQuery md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/bulkOperationRunQuery.md --- # bulk​Operation​Run​Query mutation Creates and runs a bulk operation query. See the [bulk operations guide](https://shopify.dev/api/usage/bulk-operations/queries) for more details. ## Arguments * group​Objects [Boolean!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) requiredDefault:true Whether to group objects under their corresponding parent objects in the JSONL output. Grouping is costly, causes bulk operations to take longer to complete, and increases the chances of failures such as timeouts. * query [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) required The query to be executed in bulk. *** ## Bulk​Operation​Run​Query​Payload returns * bulk​Operation [Bulk​Operation](https://shopify.dev/docs/api/admin-graphql/latest/objects/BulkOperation) The newly created bulk operation. * user​Errors [\[Bulk​Operation​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BulkOperationUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### bulkOperationRunQuery reference ## Mutation Reference ```graphql mutation bulkOperationRunQuery($query: String!, $groupObjects: Boolean!) { bulkOperationRunQuery(query: $query, groupObjects: $groupObjects) { bulkOperation { # BulkOperation fields } userErrors { field message } } } ``` ## Input ```json { "query": "", "groupObjects": true } ``` ##### Variables ``` { "query": "", "groupObjects": true } ```