"Qeersh Storefront API (v1), for headless storefronts. Uses the store's public token; reads only the published catalog." type Query { shop: Shop! products(first: Int = 20, after: String, query: String, collection: String): ProductConnection! product(handle: String!): Product collections(first: Int = 20, after: String): CollectionConnection! "A cart by its id (the secret cart token returned by cartCreate)." cart(id: ID!): Cart } type Mutation { cartCreate(lines: [CartLineInput!]! = [], locale: String): Cart! cartLinesAdd(cartId: ID!, lines: [CartLineInput!]!): Cart! } input CartLineInput { variantId: ID! quantity: Int! = 1 } type PageInfo { hasNextPage: Boolean! endCursor: String } type Money { amount: Int! currency: String! } type LocalizedText { ar: String en: String } type Shop { id: ID! name: LocalizedText! subdomain: String! primaryDomain: String locale: String! currency: String! } type Product { id: ID! type: String! title: LocalizedText! description: LocalizedText! handle: String! vendor: String tags: [String!]! variants: [Variant!]! publishedAt: String } type Variant { id: ID! sku: String option1: String option2: String option3: String price: Money! compareAtPrice: Money } type ProductConnection { nodes: [Product!]! pageInfo: PageInfo! } type Collection { id: ID! title: LocalizedText! description: LocalizedText! handle: String! } type CollectionConnection { nodes: [Collection!]! pageInfo: PageInfo! } type CartLine { id: ID! variantId: ID! title: String! quantity: Int! unitPrice: Money! } type Cart { id: ID! lines: [CartLine!]! subtotal: Money! "Continue to the store's checkout (valid 7 days)." checkoutUrl: String! }