Class: ShopifyGraphql::GetBulkOperation
- Inherits:
-
Object
- Object
- ShopifyGraphql::GetBulkOperation
- Includes:
- Query
- Defined in:
- app/graphql/shopify_graphql/get_bulk_operation.rb
Constant Summary collapse
- QUERY =
<<~GRAPHQL query($id: ID!){ node(id: $id) { ... on BulkOperation { id status errorCode createdAt completedAt fileSize url } } } GRAPHQL
Instance Method Summary collapse
Methods included from Query
Instance Method Details
#call(id:) ⇒ Object
21 22 23 24 25 |
# File 'app/graphql/shopify_graphql/get_bulk_operation.rb', line 21 def call(id:) response = execute(QUERY, id: id) response.data = parse_data(response.data.node) response end |