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
viewNamestringThe name of the view.
viewOnstringThe name of the collection that the view is on.
pipelineIEnumerable<BsonDocument>The pipeline.
optionsIMongoCreateViewOptionsThe options.
Returns
- CommandResult
A CommandResult.