@secondlayer/subgraphs 3.3.0 → 3.4.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/src/index.d.ts +13 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -308,6 +308,12 @@ type ComparisonFilter<T> = {
|
|
|
308
308
|
gte?: T
|
|
309
309
|
lt?: T
|
|
310
310
|
lte?: T
|
|
311
|
+
/** Match any value in the set. */
|
|
312
|
+
in?: T[]
|
|
313
|
+
/** Match none of the values in the set. */
|
|
314
|
+
notIn?: T[]
|
|
315
|
+
/** SQL ILIKE pattern (case-insensitive); `%`/`_` wildcards. Strings only. */
|
|
316
|
+
like?: string
|
|
311
317
|
};
|
|
312
318
|
/** Where clause — each column accepts a scalar (eq) or comparison object */
|
|
313
319
|
type WhereInput<TRow> = { [K in keyof TRow]? : TRow[K] | ComparisonFilter<TRow[K]> };
|
|
@@ -327,9 +333,15 @@ type SystemOrderByAliases = {
|
|
|
327
333
|
createdAt?: "asc" | "desc"
|
|
328
334
|
id?: "asc" | "desc"
|
|
329
335
|
};
|
|
336
|
+
/** Ordered list form for deterministic multi-column sort. */
|
|
337
|
+
type OrderByList<TRow> = Array<[keyof (TRow & SystemOrderByAliases) & string, "asc" | "desc"]>;
|
|
330
338
|
interface FindManyOptions<TRow> {
|
|
331
339
|
where?: WhereInput<TRow> & SystemWhereAliases;
|
|
332
|
-
|
|
340
|
+
/**
|
|
341
|
+
* Single-key object (common case) OR an ordered `[column, direction][]` list
|
|
342
|
+
* for deterministic multi-column sort (object key order isn't guaranteed).
|
|
343
|
+
*/
|
|
344
|
+
orderBy?: ({ [K in keyof TRow]? : "asc" | "desc" } & SystemOrderByAliases) | OrderByList<TRow>;
|
|
333
345
|
limit?: number;
|
|
334
346
|
offset?: number;
|
|
335
347
|
fields?: (keyof TRow & string)[];
|