Method CreateView
CreateView(string, string, IEnumerable<BsonDocument>, IMongoCreateViewOptions)
Creates a view.
public virtual CommandResult CreateView(string viewName, string viewOn, IEnumerable<BsonDocument> pipeline, IMongoCreateViewOptions options)
Parameters
viewName
stringThe name of the view.
viewOn
stringThe name of the collection that the view is on.
pipeline
IEnumerable<BsonDocument>The pipeline.
options
IMongoCreateViewOptionsThe options.
Returns
- CommandResult
A CommandResult.