suspend fun createView(viewName: String, viewOn: String, pipeline: List<Bson>, createViewOptions: CreateViewOptions = CreateViewOptions()): <ERROR CLASS>
(source)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
viewName
- the name of the view to create
viewOn
- the backing collection/view for the view
pipeline
- the pipeline that defines the view
createViewOptions
- various options for creating the view
Return
an observable identifying when the collection view has been created
Since
1.3
Mongodb
.server.release 3.4
Mongodb
.driver.manual reference/command/create Create Command
suspend fun createView(clientSession: ClientSession, viewName: String, viewOn: String, pipeline: List<Bson>, createViewOptions: CreateViewOptions = CreateViewOptions()): <ERROR CLASS>
(source)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
clientSession
- the client session with which to associate this operation
viewName
- the name of the view to create
viewOn
- the backing collection/view for the view
pipeline
- the pipeline that defines the view
createViewOptions
- various options for creating the view
Since
1.3
Mongodb
.server.release 3.4
Mongodb
.driver.manual reference/command/create Create Command