Query.prototype.tailable()
Parameters
bool «Boolean» defaults to true
[opts] «Object» options to set
[opts.numberOfRetries] «Number» if cursor is exhausted, retry this many times before giving up
[opts.tailableRetryInterval] «Number» if cursor is exhausted, wait this many milliseconds before retrying
Sets the tailable option (for use with capped collections).
Example
query.tailable() // true
query.tailable(true)
query.tailable(false)
Note
Cannot be used with distinct()
当前内容版权归 mongoosejs 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 mongoosejs .