Resolves the type of the resource retrieved by a model.
For a template, resolves to the state of the shape restricted to the members the template names,
including those of nested templates. A collection requested with a projection holds the rows the projection
computes. For a projection, resolves to the computed row, keyed by the name before each binding's =, with columns
typed as any value a resource may hold. Depth, cardinality and optionality come from the shape: the model only
selects which values to return. Filtering, ordering and pagination criteria don't affect the result type.
Members the template omits are omitted from the match. A localised member asked for by the atomic placeholder
resolves to the text language negotiation returns for it: a string or an array of strings, at the per-tag arity its
shape states. Polymorphic members, localised members asked for per tag and projection columns keep the broad type
the shape describes, since each value is resolved against its whole shape. Callers needing the branch a branch map
selects, the tags a language range selects, or the type an expression computes, must narrow it themselves.
Under the bare ResourceShape, every member the template names resolves to any
values. A generic Template names no member at all
and resolves to an empty record, with no member left for the shape to resolve.
Resolves the type of the resource retrieved by a model.
For a template, resolves to the state of the shape restricted to the members the template names, including those of nested templates. A collection requested with a projection holds the rows the projection computes. For a projection, resolves to the computed row, keyed by the name before each binding's
=, with columns typed as any value a resource may hold. Depth, cardinality and optionality come from the shape: the model only selects which values to return. Filtering, ordering and pagination criteria don't affect the result type.Members the template omits are omitted from the match. A localised member asked for by the atomic placeholder resolves to the text language negotiation returns for it: a string or an array of strings, at the per-tag arity its shape states. Polymorphic members, localised members asked for per tag and projection columns keep the broad type the shape describes, since each value is resolved against its whole shape. Callers needing the branch a branch map selects, the tags a language range selects, or the type an expression computes, must narrow it themselves.
Under the bare ResourceShape, every member the template names resolves to any values. A generic Template names no member at all and resolves to an empty record, with no member left for the shape to resolve.