@grafctory/keep
    Preparing search index...

    Type Alias StoreLookup<S, T>

    Store lookup request.

    Names the resource to retrieve with lookup, the shape describing it and the template narrowing the result.

    type StoreLookup<S extends Lazy<ResourceShape>, T extends Model<S, T>> = {
        virtual?: boolean;
        entry: Reference;
        shape: S;
        model: T;
    }

    Type Parameters

    • S extends Lazy<ResourceShape>

      The shape driving the retrieval

    • T extends Model<S, T>

      The retrieval template, naming only members the shape carries

    Index
    virtual?: boolean

    Whether the resource is derived from the store rather than held in it.

    When true, the resource is returned even if entry is not stored, and its collections gather every stored instance of the classes their range declares, rather than the resources entry links to.

    false (retrieved as held)

    Readonlyentry

    entry: Reference

    Absolute identifier of the resource to be retrieved.

    shape: S

    Resource shape the retrieval is validated against, possibly deferred to break definition cycles.

    model: T

    Retrieval template defining the data envelope of the result.

    The template names only members carried by shape, each in a form its range admits. Multi-valued members may also state filtering, ordering and pagination constraints, or a projection in place of a template.