@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.
@@ -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 no `limit`. Defaults to 200.
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
- * `hasMore` reports whether the cap truncated the result, so a capped page is always
429
- * distinguishable from a complete one without asking for a count.
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
- * Set to `null` for no default cap. That is the pre-0.17 behaviour and it means an unqualified
432
- * list query returns the whole table.
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
  }