Skip to main content
Version: v10.7.1

RowsContext

What a rows mapping receives next to the response or message it reads


Import
import { RowsContext } from "@hyper-fetch/db"

Preview​

type RowsContext<Row> = {
where: Partial<Row>;
}

Structure​

RowsContext
NameTypeDescription
where
Partial<Row>

The values of the eq conditions this load sent, by field: the filters a loader mapped to its request, or the

where fields of a snapshot sync. Rows that come without them take them from here, such as the posts of

/teams/:teamId/posts that carry no teamId . A field the load did not send is absent, and a load by key sends none.