From 01536df168ebf2629cd25a7606660db9b558c260 Mon Sep 17 00:00:00 2001 From: Hinell Date: Mon, 6 Feb 2017 00:02:44 +0300 Subject: [PATCH] [mongodb] collection.findOne is coming back Closes #14444 Quick fix according to docs and mongodb issue tracker: http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#findOne https://jira.mongodb.org/browse/NODE-890 --- mongodb/index.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/mongodb/index.d.ts b/mongodb/index.d.ts index bab845a01d..3603b8877c 100644 --- a/mongodb/index.d.ts +++ b/mongodb/index.d.ts @@ -620,11 +620,8 @@ export interface Collection { /** @deprecated */ find(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne - /** @deprecated use find().limit(1).next(function(err, doc){}) */ findOne(filter: Object, callback: MongoCallback): void; - /** @deprecated use find().limit(1).next(function(err, doc){}) */ findOne(filter: Object, options?: FindOneOptions): Promise; - /** @deprecated use find().limit(1).next(function(err, doc){}) */ findOne(filter: Object, options: FindOneOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete findOneAndDelete(filter: Object, callback: MongoCallback): void;