Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @shop = Shop.last.shopify_client
- class ShopsController < ApplicationController
- SHOPIFY_CLIENT = shopify_client_here #(should be from @shop instance variable, @shop.shopify_client)
- CLIENT = ShopifyAPI::GraphQL.new
- SHOP_QUERY = CLIENT.parse <<-'GRAPHQL'
- {
- shop
- }
- GRAPHQL
- def test
- result = CLIENT.query(SHOP_QUERY)
- end
- end
Add Comment
Please, Sign In to add comment