Store Products
ListStoreProducts Query
This query retrieves a list of products for a specific store with comprehensive filtering, pagination, and sorting capabilities. It provides detailed information about each product including variants, pricing, inventory, media, and metadata.
Parameters​
$connection: ProductsConnectionInput- Pagination and sorting parameters:first: Number of items to retrieve (e.g., 20)offset: Starting position in the result setsortBy: Field to sort by (e.g., "createdAt", "title", "updatedAt")sortOrder: Order direction ("asc" or "desc")
$filter: ProductsFilterInput- Filter criteria for narrowing results:isArchived: Filter by archive status (boolean)isDeleted: Filter by deletion status (boolean)isVisible: Filter by visibility status (boolean)status: Filter by product status ("ACTIVE", "DRAFT", etc.)storeIds: Array of store IDs to filter bytype: Filter by product type ("SIMPLE", "VARIABLE", etc.)source: Filter by product source ("MANUAL", "IMPORT", etc.)minPrice/maxPrice: Price range filteringtitle: Text search in product titlesproductIds: Filter by specific product IDs
$locale: String- Language locale for localized content (e.g., "en", "ar")
Response Structure​
The query returns a products object with:
totalCount- Total number of products matching the filter criterianodes- Array of product objects containing detailed product informationpageInfo- Pagination information with cursor-based navigation__typename- GraphQL type information ("ProductConnection")
Product Fields Detail​
Each product in the nodes array includes:
Basic Information​
id- Unique product identifiertitle- Product name/titlehandle- URL-friendly product slugtype- Product type (SIMPLE, VARIABLE, etc.)status- Product status (ACTIVE, DRAFT, ARCHIVED)source- How the product was created (MANUAL, IMPORT, etc.)isVisible- Whether product is visible in storefrontisArchived- Whether product is archivedisDeleted- Whether product is deletedlocale- Primary language localeshortDescription- Brief product descriptiondescriptionHtml- Full HTML descriptiontaxable- Whether product is subject to taxproductTax- Tax rate if applicablecreatedAt/updatedAt- Timestamps
Media and SEO​
media- Array of product images with full image detailsseo- SEO metadata including title and description
Product Options and Attributes​
options- Product options (size, color, etc.) with valuesattributes- Product attributes for categorizationcollectionIds- Collections this product belongs to
Variants​
variants- Array of product variants containing:- Pricing information (
price,compareAtPrice,cost) - Inventory details (
quantity,trackQuantity) - SKU and external ID
- Selected options and values
- Cart limits and package details
- Reservations and availability
- Pricing information (
Use Cases​
This query is ideal for:
- Product Catalog Display - Showing products in store listings
- Inventory Management - Managing product stock and variants
- Search and Filtering - Implementing product search functionality
- Admin Dashboards - Displaying product management interfaces
- Export Operations - Bulk product data retrieval
- Analytics - Product performance and catalog analysis
Example Filters​
Active Products Only​
{
"filter": {
"status": "ACTIVE",
"isVisible": true,
"isArchived": false,
"isDeleted": false
}
}
Products by Price Range​
{
"filter": {
"minPrice": 10.00,
"maxPrice": 100.00,
"status": "ACTIVE"
}
}
Search by Title​
{
"filter": {
"title": "shirt",
"isVisible": true
}
}
Recently Created Products​
{
"connection": {
"first": 10,
"sortBy": "createdAt",
"sortOrder": "desc"
},
"filter": {
"status": "ACTIVE"
}
}
Performance Notes​
- Use pagination (
first/offset) to limit response size - Apply specific filters to reduce query complexity
- Consider using
productIdsfilter when fetching specific products - The query includes comprehensive product data - consider requesting only needed fields for better performance
Related Queries​
product(id: ID!)- Fetch a single product by IDproductVariants- Query product variants specificallycollections- Query product collectionsproductAttributes- Query available product attributes
GraphQL Endpoint​
https://graphql.wuilt.com
Operation: ListStoreProducts​
Try It Out​
Query​
Query Variables
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Note: Make sure to change the storeId with your store ID. For guidance on how to get your store ID, reference the Store ID guide.
Authentication​
To use this query, you will need an API key. Click the "API Key" button in the navigation bar to enter your credentials.