@spree/docs 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,9 +80,14 @@ You can filter by associated model attributes using underscore notation:
80
80
 
81
81
 
82
82
  ```typescript SDK
83
- // Products in a specific category
83
+ // Products in a specific category (includes descendants)
84
84
  const products = await client.products.list({
85
- categories_id_eq: 'ctg_abc123',
85
+ in_category: 'ctg_abc123',
86
+ })
87
+
88
+ // Multiple categories (OR logic, checkbox filters)
89
+ const products = await client.products.list({
90
+ in_categories: ['ctg_abc123', 'ctg_def456'],
86
91
  })
87
92
 
88
93
  // Categories at a specific depth
@@ -92,10 +97,10 @@ const categories = await client.categories.list({
92
97
  ```
93
98
 
94
99
  ```bash cURL
95
- # Products in a specific category
100
+ # Products in a specific category (includes descendants)
96
101
  curl -G 'http://localhost:3000/api/v3/store/products' \
97
102
  -H 'X-Spree-Api-Key: spree_pk_xxx' \
98
- --data-urlencode 'q[categories_id_eq]=ctg_abc123'
103
+ --data-urlencode 'q[in_category]=ctg_abc123'
99
104
 
100
105
  # Top-level categories only
101
106
  curl -G 'http://localhost:3000/api/v3/store/categories' \