expireAfterSeconds schema option not valid and not effective on timeseries collection #11229
Labels
typescript
Types or Types-test related issue / Pull Request
Milestone
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I use moongose for create timeseries collection
my schema is like this :
At this point the property expireAfterSeconds is not valid for typescript because expireAfterSeconds not include in type SchemaOptions
The collection is well done created, but no info about expireAfterSeconds anywhere and after 60 seconds data not removed.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
node: v14.17.0
mongodb: 4.3.0
mongoose: 6.1.6
The text was updated successfully, but these errors were encountered: