Class: ShopifyGraphql::GetBulkOperation

Inherits:
Object
  • Object
show all
Includes:
Query
Defined in:
app/graphql/shopify_graphql/get_bulk_operation.rb

Constant Summary collapse

QUERY =
"query($id: ID!){\n  node(id: $id) {\n    ... on BulkOperation {\n      id\n      status\n      errorCode\n      createdAt\n      completedAt\n      fileSize\n      url\n      objectCount\n      rootObjectCount\n    }\n  }\n}\n"

Instance Method Summary collapse

Methods included from Query

#client

Instance Method Details

#call(id:) ⇒ Object



23
24
25
26
27
# File 'app/graphql/shopify_graphql/get_bulk_operation.rb', line 23

def call(id:)
  response = execute(QUERY, id: id)
  response.data = parse_data(response.data.node)
  response
end