Build projection for toxboot MongoDB

Share:

Description

toxbootProjectionBuild builds a list that determined which fields are returned.

Usage

1
toxbootProjectionBuild(fields, id_val = 0L)

Arguments

fields

string vector, fields to return.

id_val

integer 0L or 1L. By default 0L, which will supress Object_ID from the projection. This unique ID is often not needed. Can be set to 1L to include in projection.

Value

projection, a named list where names are the fields to return in the projection and the values are 0L (don't return) or 1L (return).

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.