Class: ShopifyGraphql::GetAppSubscription

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

Constant Summary collapse

QUERY =
"\#{AppSubscriptionFields::FRAGMENT}\n\nquery($id: ID!) {\n  node(id: $id) {\n    ... AppSubscriptionFields\n  }\n}\n"

Instance Method Summary collapse

Methods included from Query

#client

Instance Method Details

#call(id:) ⇒ Object



15
16
17
18
19
# File 'app/graphql/shopify_graphql/get_app_subscription.rb', line 15

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