projectSelection
projectSelection(
selection?,schema?):Projection
Defined in: src/query/selection.ts:306
Resolves a selection, through a schema or without one. A key that does not start with $ names
an attribute — through a schema, it must be a column.
undefined or "*" selects every entity field and, through a schema, every column; without one,
every attribute as the $attributes map. The $attributeSchema is only selected by name.
Attributes are fetched by name where possible, so the ones a row does not carry stay on the node. A named schema’s tag is fetched too, so each entity can be checked against it.
Parameters
Section titled “Parameters”selection?
Section titled “selection?”schema?
Section titled “schema?”Returns
Section titled “Returns”Throws
Section titled “Throws”If the selection asks for nothing, names a $ key that is not an entity field, names an
attribute outside the name grammar, or — through a schema — names an attribute that is not a
column.