routier-collection / core/src / splitSendableOptions
Function: splitSendableOptions()
splitSendableOptions<
T>(options):object
Defined in: core/src/plugins/wire/query.ts:31
Splits options into the PREFIX that can be sent and the remainder that cannot.
A prefix, not a filtered subset, and that is the whole correctness argument. Options are ordered, and most are not idempotent: sending count while keeping map local would count unmapped rows, and applying take on both sides would window twice. So the split stops at the first option that cannot travel, and everything from there on runs where the closures are.
It is the same shape as the database/memory split this composes with — one more cut of the same ordered list, for one more reason.
Type Parameters
T
T
Parameters
options
Returns
object
sendable
sendable:
QueryOptionsCollection<T>
local
local:
QueryOptionsCollection<T>