@internal
(
client: MongoClient,
namespace: MongoDBNamespace,
filter: Document = {},
options: FindOptions & Abortable = {}
)
| 41 | |
| 42 | /** @internal */ |
| 43 | constructor( |
| 44 | client: MongoClient, |
| 45 | namespace: MongoDBNamespace, |
| 46 | filter: Document = {}, |
| 47 | options: FindOptions & Abortable = {} |
| 48 | ) { |
| 49 | super(client, namespace, options); |
| 50 | |
| 51 | this.cursorFilter = filter; |
| 52 | this.findOptions = options; |
| 53 | |
| 54 | if (options.sort != null) { |
| 55 | this.findOptions.sort = formatSort(options.sort); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | clone(): FindCursor<TSchema> { |
| 60 | const clonedOptions = mergeOptions({}, this.findOptions); |
nothing calls this directly
no test coverage detected