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).
Parameters
Section titled “Parameters”select
Section titled “select”string[]
toField?
Section titled “toField?”(field) => string
Returns
Section titled “Returns”Record<string, 1>