@grafctory/keep
    Preparing search index...

    Type Alias StoreScope

    Store retrieval scope.

    Bounds the aggregates, nesting depth and page size a lookup admits in its model, and sets the locale priority for its localised content. Every member is optional, and the scope is closed by default. An empty scope admits only the values a resource holds singly and the links it holds. It resolves localised content against the undetermined und tag alone. Each bound opens one part of the query language up to the value it states, and an Infinity bound opens that part entirely, with no cap on what a caller may ask for.

    Every store factory takes a default scope that fills in the members a lookup leaves out, one by one. A deployment that trusts its callers states wide bounds once, where the store is built, rather than on every lookup it makes.

    Caution

    The default scope is a fallback, not a ceiling. A member a lookup states replaces the default, whether it is narrower or wider. A service taking the scope from an untrusted client must cap it before calling the store.

    type StoreScope = {
        locale?: readonly Tag[];
        stats?: boolean;
        depth?: number;
        limit?: number;
    }
    Index
    locale?: readonly Tag[]

    Tag priority list driving language negotiation for localised content.

    Entries are matched in order of preference against the language tags available for each localised value.

    ["und"]

    stats?: boolean

    Whether to admit model templates with aggregate transforms (count, sum, min, max, avg).

    false, admitting retrieval but not computation

    depth?: number

    Maximum number of links a model may traverse, through nested templates and query paths alike.

    Each nested resource or path step counts against the budget. 0 refuses any nested template, but still admits a link retrieved as the IRI naming its target. Infinity admits a traversal of any length.

    0

    limit?: number

    Maximum page size admitted for the # pagination constraint on model collections.

    A positive value caps each page: a # exceeding it, or set to 0 to ask for no limit, is rejected, and a collection with no # is held to it. 0 refuses every collection. Infinity admits any page, leaving the paging of each collection to the caller, who may then ask for the whole set at once.

    0