Product Connection
An auto-generated type for paginating through multiple Products.
Anchor to Fields with this connectionFields with this connection
- •OBJECT
A group of products organized by a merchant to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria.
Query a collection's products with filtering options like availability, price range, vendor, and tags. Each collection includes
information, an optionalImage, and supports custom data throughmetafields.
Anchor to Queries with this connectionQueries with this connection
- products (ProductConnection!)
- •query
Returns a paginated list of the shop's products.
For full-text storefront search, use the
searchquery instead.- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Product
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•String
You can apply one or multiple filters to a query. Learn more about Shopify API search syntax.
- Anchor to available_for_sale•
Filter by products that have at least one product variant available for sale.
- Anchor to created_at•
Filter by the date and time when the product was created.
created_at:>'2020-10-21T23:39:20Z'created_at:<nowcreated_at:<=2024- Anchor to product_type•
Filter by a comma-separated list of product types.
product_type:snowboard- Anchor to tag_not•
Filter by products that don't have the specified product tags.
tag_not:my_tag- Anchor to updated_at•
Filter by the date and time when the product was last updated.
updated_at:>'2020-10-21T23:39:20Z'updated_at:<nowupdated_at:<=2024- Anchor to variants.price•
Filter by the price of the product's variants.
Example:
Example:
Example:
Example:
Arguments
Anchor to Possible returnsPossible returns
- edges ([ProductEdge!]!)
- filters ([Filter!]!)
- nodes ([Product!]!)
- pageInfo (PageInfo!)
- Anchor to edgesedges•[Product
Edge!]! non-null A list of edges.
- Anchor to filtersfilters•[Filter!]!non-null
A list of available filters.
- Anchor to nodesnodes•[Product!]!non-null
A list of the nodes contained in ProductEdge.
- Anchor to pageInfopage•Page
Info Info! non-null Information to aid in pagination.