Class: ShopifyGraphql::CreateBulkQuery
- Inherits:
-
Object
- Object
- ShopifyGraphql::CreateBulkQuery
- Includes:
- Mutation
- Defined in:
- app/graphql/shopify_graphql/create_bulk_query.rb
Constant Summary collapse
- MUTATION =
<<~GRAPHQL mutation($query: String!) { bulkOperationRunQuery(query: $query) { bulkOperation { id status } userErrors { field message } } } GRAPHQL
Instance Method Summary collapse
Methods included from Mutation
Instance Method Details
#call(query:) ⇒ Object
20 21 22 23 24 25 |
# File 'app/graphql/shopify_graphql/create_bulk_query.rb', line 20 def call(query:) response = execute(MUTATION, query: query) response.data = response.data.bulkOperationRunQuery handle_user_errors(response.data) response end |