toxbootProjectionBuild: Build projection for toxboot MongoDB

Description Usage Arguments Value

View source: R/toxbootMongoFuncs.R

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 suppress 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).


toxboot documentation built on Nov. 26, 2018, 1:04 a.m.