pipeline property
An array that consists of the aggregation pipeline stage(s). create creates the view by applying the specified pipeline to the viewOn collection or view.
The view definition pipeline cannot include the $out
or the $merge
stage.
If the view definition includes nested pipeline (e.g. the view definition
includes $lookup
or $facet
stage), this restriction applies to the
nested pipelines as well.
The view definition is public; i.e. db.getCollectionInfos()
and explain
operations on the view will include the pipeline that defines the view.
As such, avoid referring directly to sensitive fields and values in
view definitions.
See also db.createView().
New in version 3.4.
Implementation
final List? pipeline;