{"repo":"nebulab/active_shopify_graphql","free":true,"listed":false,"github":"https://github.com/nebulab/active_shopify_graphql","clone":"git clone https://github.com/nebulab/active_shopify_graphql.git","description":"Bringing domain object peace of mind to the world of Shopify GraphQL APIs","language":"Ruby","stars":13,"topics":["graphql","ruby","shopify","rails"],"license":"MIT","category":"ecommerce","readme_excerpt":"ActiveShopifyGraphQL Bringing Read Only (for now) ActiveRecord-like domain modeling to Shopify GraphQL APIs Support for both Admin and Customer Account APIs with automatic query building, response mapping, and N+1-free connections. --- 🚀 Quick Start --- ✨ Why? The Problem GraphQL is powerful, but dealing with raw responses is painful: Problems: - ❌ Different schemas for Admin API vs any other API - ❌ Inconsistent data shapes across queries - ❌ Manual type conversions everywhere - ❌ N+1 query problems with connections - ❌ No validation or business logic layer The Solution Benefits: - ✅ Single source of truth — Models, not hashes - ✅ Type-safe attributes — Automatic coercion - ✅ Unified across APIs — Same model, different loaders - ✅ Optional eager loading — Save points by default, eager load when needed - ✅ ActiveRecord-like — Familiar, idiomatic Ruby and Rails --- 📚 Table of Contents - Installation - Configuration - Core Concepts - Features - API Reference - Advanced Topics - Development --- Installation Add to your Gemfile: Or install globally: --- Configuration Configure your Shopify GraphQL clients: --- Core Concepts Models Models are the heart of ActiveShopifyGraphQL. They define: - GraphQL type → Which Shopify schema type they map to - Attributes → Fields to fetch and their types - Associations → Relationships to other models - Connections → GraphQL connections for related data - Business logic → Validations, methods, transformations Attributes Attributes auto-generate","default_branch":null,"files":null,"tree":[],"storefront":"/r/nebulab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nebulab/active_shopify_graphql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}