These functions translate R code to json readably by Mongodb.

match(x, ...)

# S3 method for mongopipe
match(x, ...)

field(x, ...)

# S3 method for mongopipe
field(x, ...)

lookup(x, ...)

# S3 method for mongopipe
lookup(x, from, local_field = from, foreign_field = "_id", as = from, ...)

unwind(x, ...)

# S3 method for mongopipe
unwind(x, field, ...)

limit(x, ...)

# S3 method for mongopipe
limit(x, limit, ...)

project(x, ...)

# S3 method for mongopipe
project(x, ...)

Arguments

x

Object of class mongopipe

...

list object

from

Collection to join

local_field

Field from the input documents

foreign_field

Field from the documents of the "from" collection

as

Name of output array field (Default: from)

field

Field to unwind.

limit

Integer to limit the number of documents.

Value

Object of type mongopipe.