Class: ShopifyGraphql::CreateStagedUploads
- Inherits:
-
Object
- Object
- ShopifyGraphql::CreateStagedUploads
- Includes:
- Mutation
- Defined in:
- app/graphql/shopify_graphql/create_staged_uploads.rb
Constant Summary collapse
- MUTATION =
"mutation stagedUploadsCreate($input: [StagedUploadInput!]!) {\n stagedUploadsCreate(input: $input) {\n stagedTargets {\n url\n resourceUrl\n parameters {\n name\n value\n }\n }\n userErrors{\n field,\n message\n }\n }\n}\n"
Instance Method Summary collapse
Methods included from Mutation
Instance Method Details
#call(input:) ⇒ Object
24 25 26 27 28 29 |
# File 'app/graphql/shopify_graphql/create_staged_uploads.rb', line 24 def call(input:) response = execute(MUTATION, input: input) response.data = response.data.stagedUploadsCreate handle_user_errors(response.data) response end |