@centrali-io/centrali-sdk 2.9.9 → 3.0.0
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.
- package/dist/index.js +8 -0
- package/index.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1109,6 +1109,14 @@ class SmartQueriesManager {
|
|
|
1109
1109
|
* const filtered = await client.smartQueries.execute('orders', 'query-id', {
|
|
1110
1110
|
* variables: { statusFilter: 'active' }
|
|
1111
1111
|
* });
|
|
1112
|
+
*
|
|
1113
|
+
* // Accessing joined data (nested under _joined)
|
|
1114
|
+
* // Query with join: { join: { foreignSlug: "products", ... } }
|
|
1115
|
+
* const items = await client.smartQueries.execute('order-items', 'items-with-products');
|
|
1116
|
+
* items.data.forEach(item => {
|
|
1117
|
+
* console.log('Item:', item.name);
|
|
1118
|
+
* console.log('Product:', item._joined?.products?.title);
|
|
1119
|
+
* });
|
|
1112
1120
|
* ```
|
|
1113
1121
|
*/
|
|
1114
1122
|
execute(structureSlug, queryId, options) {
|
package/index.ts
CHANGED
|
@@ -2695,6 +2695,14 @@ export class SmartQueriesManager {
|
|
|
2695
2695
|
* const filtered = await client.smartQueries.execute('orders', 'query-id', {
|
|
2696
2696
|
* variables: { statusFilter: 'active' }
|
|
2697
2697
|
* });
|
|
2698
|
+
*
|
|
2699
|
+
* // Accessing joined data (nested under _joined)
|
|
2700
|
+
* // Query with join: { join: { foreignSlug: "products", ... } }
|
|
2701
|
+
* const items = await client.smartQueries.execute('order-items', 'items-with-products');
|
|
2702
|
+
* items.data.forEach(item => {
|
|
2703
|
+
* console.log('Item:', item.name);
|
|
2704
|
+
* console.log('Product:', item._joined?.products?.title);
|
|
2705
|
+
* });
|
|
2698
2706
|
* ```
|
|
2699
2707
|
*/
|
|
2700
2708
|
public execute<T = any>(
|