Skip to content

toMongoProjection

toMongoProjection(select, toField?): Record<string, 1>

Defined in: mongo-filter.ts:158

Translate a Mantle QueryParams.select list to a MongoDB projection (_id is always included).

string[]

(field) => string

Record<string, 1>