Method: ShopifyCLI::PartnersAPI::Organizations.fetch_all_with_apps
- Defined in:
- lib/shopify_cli/partners_api/organizations.rb
.fetch_all_with_apps(ctx) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/shopify_cli/partners_api/organizations.rb', line 21 def fetch_all_with_apps(ctx) resp = PartnersAPI.query(ctx, "all_orgs_with_apps") (resp&.dig("data", "organizations", "nodes") || []).map do |org| org["stores"] = (org.dig("stores", "nodes") || []) org["apps"] = (org.dig("apps", "nodes") || []) org end end |