SimpleTableMapping.projection property
Home > @cbnsndwch/zero-contracts > SimpleTableMapping > projection
SimpleTableMapping.projection property
MongoDB-like projection to apply. Both include/exclude (1 | 0) and simple renaming ($sourceField) syntaxes are supported.
Supports: - Include/exclude: { field: 1 } or { field: 0 } - Field reference: { field: '$otherField' } - Projection operators: { field: { $concat: ['$a', '$b'] } }
Signature:
projection?: Projection<TTable>;How was this page?