@stonecrop/graphql-middleware 0.17.0 → 0.19.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/graphql-middleware.d.ts +13 -5
- package/dist/index.js +460 -304
- package/dist/index.js.map +1 -1
- package/dist/src/fields.d.ts +23 -0
- package/dist/src/fields.d.ts.map +1 -0
- package/dist/src/fields.js +28 -0
- package/dist/src/link-display.d.ts +19 -0
- package/dist/src/link-display.d.ts.map +1 -0
- package/dist/src/link-display.js +80 -0
- package/dist/src/plugin/postgraphile.d.ts +19 -5
- package/dist/src/plugin/postgraphile.d.ts.map +1 -1
- package/dist/src/plugin/postgraphile.js +244 -50
- package/dist/src/registry/doctypes.d.ts +12 -1
- package/dist/src/registry/doctypes.d.ts.map +1 -1
- package/dist/src/registry/doctypes.js +65 -2
- package/dist/src/tables.d.ts +14 -0
- package/dist/src/tables.d.ts.map +1 -0
- package/dist/src/tables.js +21 -0
- package/dist/src/typeDefs.d.ts.map +1 -1
- package/dist/src/typeDefs.js +16 -0
- package/package.json +2 -2
|
@@ -418,18 +418,26 @@ export declare interface StonecropPluginOptions {
|
|
|
418
418
|
*/
|
|
419
419
|
actionHandlers?: Record<string, Record<string, ActionHandler>>;
|
|
420
420
|
/**
|
|
421
|
-
* Row cap applied to `stonecropRecords` when the caller requests
|
|
421
|
+
* Row cap applied when nothing else names one: to `stonecropRecords` when the caller requests
|
|
422
|
+
* no `limit`, and to a many-side link when its declaration carries no `fetch.limit`. Defaults
|
|
423
|
+
* to 200.
|
|
422
424
|
*
|
|
423
425
|
* A row cap is a statement about what this database can afford to serve, so it belongs to
|
|
424
426
|
* whoever owns the database — not to a doctype (which describes the API surface, not the
|
|
425
427
|
* table) and not to a page (which cannot know the size of an arbitrary table). Callers stay
|
|
426
428
|
* free to ask for less; they cannot ask for an unbounded scan by omission.
|
|
427
429
|
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
+
* One number covers both reads because a link *is* a list, fetched a different way. It used to
|
|
431
|
+
* be capped at a hard-coded 50 that no option could reach, which is how an operator watching a
|
|
432
|
+
* slow query found there was no knob to turn.
|
|
430
433
|
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
434
|
+
* Truncation is always reported — `hasMore` for a list, `truncatedLinks` for a record — so a
|
|
435
|
+
* partial answer is distinguishable from a complete one without asking for a count. That
|
|
436
|
+
* matters more for a link than for a list: a link cannot be paged, so a client that writes
|
|
437
|
+
* back a truncated relation deletes the rows it was never sent.
|
|
438
|
+
*
|
|
439
|
+
* Set to `null` for no default cap. That is the pre-0.17 behaviour for lists, and it means an
|
|
440
|
+
* unqualified list query returns the whole table and a link returns the whole relation.
|
|
433
441
|
*/
|
|
434
442
|
defaultRecordLimit?: number | null;
|
|
435
443
|
}
|