Guest User

Untitled

a guest
May 23rd, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @shop = Shop.last.shopify_client
  2.  
  3. class ShopsController < ApplicationController
  4. SHOPIFY_CLIENT = shopify_client_here #(should be from @shop instance variable, @shop.shopify_client)
  5. CLIENT = ShopifyAPI::GraphQL.new
  6. SHOP_QUERY = CLIENT.parse <<-'GRAPHQL'
  7. {
  8. shop
  9. }
  10. GRAPHQL
  11.  
  12. def test
  13. result = CLIENT.query(SHOP_QUERY)
  14. end
  15. end
Add Comment
Please, Sign In to add comment