I am working on the timeseries collection, need to update some of the fields using ObjectId. But getting the exception in updating the document
error: MongoDB.Driver.MongoWriteException: A write operation resulted in an error. WriteError: { Category : “Uncategorized”, Code : 72, Message : “Cannot perform a non-multi update on a time-series collection” }.
A bulk write operation resulted in one or more errors. WriteErrors: [ { Category : “Uncategorized”, Code : 72, Message : “Cannot perform a non-multi update on a time-series collection” } ].
at MongoDB.Driver.MongoCollectionImpl1.BulkWriteAsync(IClientSessionHandle session, IEnumerable
1 requests, BulkWriteOptions options, CancellationToken cancellationToken)
at MongoDB.Driver.MongoCollectionImpl1.UsingImplicitSessionAsync[TResult](Func
2 funcAsync, CancellationToken cancellationToken)
at MongoDB.Driver.MongoCollectionBase1.ReplaceOneAsync(FilterDefinition
1 filter, TDocument replacement, ReplaceOptions options, Func3 bulkWriteAsync) --- End of inner exception stack trace --- at MongoDB.Driver.MongoCollectionBase
1.ReplaceOneAsync(FilterDefinition1 filter, TDocument replacement, ReplaceOptions options, Func
3 bulkWriteAsync)
My question is do we have any provision to update the timeseries collection?