Commit Graph

68 Commits

Author SHA1 Message Date
Jarom Loveridge
147bef129f Update SSLOptions to match documentation. (#25080) 2018-04-18 09:47:35 -07:00
Alexander Christie
3204acf72a Add support for the Collation argument to Cursors (#25099)
http://mongodb.github.io/node-mongodb-native/3.0/api/Cursor.html#collation
2018-04-18 09:44:50 -07:00
Nattapong-sir
e372b989c7 Add auth options into MongoClientOptions (#24934)
Reference: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24906#issuecomment-380486889
2018-04-12 09:59:27 -07:00
Federico Caselli
8070848da5 Fixed generic type bug in Collection.find (#24857) 2018-04-09 13:25:43 -07:00
Jesse Lentz
76db75e673 [mongodb] Update SSLOptions.sslValidate to be a boolean (#24810)
Per
http://mongodb.github.io/node-mongodb-native/3.0/api/MongoClient.html,
this MongoClient option should be a boolean instead of an Object.
2018-04-09 10:45:56 -07:00
Julien Chaumond
86765719a3 [mongodb] since v3 of the driver, aggregate calls back with an AggregationCursor 2018-04-05 17:34:14 -04:00
Mine Starks
55e05ddb0b
Merge pull request #24393 from alex-sherwin/master
Updated DbCreateOptions.promoteBuffers to be boolean, updated docs
2018-03-20 16:15:28 -07:00
Alexander Christie
fb2ce6d073
Export the FilterQuery type 2018-03-20 15:26:46 +00:00
Alex Sherwin
9e65084d50 Updated DbCreateOptions.promoteBuffers to be boolean, updated docs
Existing value was a number and the comment associated was not the
correct information.  Updated to be a boolean and updated comment
to be from https://mongodb.github.io/node-mongodb-native/3.0/api/MongoClient.html#.connect
2018-03-19 22:52:49 -04:00
José Padilla
8c569954f4
Update according to NODE-1258
https://github.com/mongodb/node-mongodb-native/pull/1670 was released as part of v3.0.4
2018-03-13 13:37:16 -04:00
Armando Aguirre
81ed95580d
Merge pull request #24026 from EnricoPicci/master
InsertWriteOpResult of mongodb updated - property "insertedIds" aligned with driver version 3.0.3
2018-03-05 15:12:22 -08:00
Armando Aguirre
a880a43b5c
Merge pull request #23577 from ddwwcruz/mongodb-enhanced-typings
Mongodb enhanced typings
2018-03-05 14:53:38 -08:00
Wayne Dela Cruz
95b77c041f Add more support for different kinds of queries 2018-03-04 15:21:08 +08:00
penrico
6e48ecde74 InsertWriteOpResult of mongodb updated - with contributor 2018-03-02 12:07:34 +01:00
penrico
ba372b251e InsertWriteOpResult of mongodb updated 2018-03-02 11:40:40 +01:00
Wayne Dela Cruz
c04a3e7179 Add some tests 2018-03-01 21:02:08 +08:00
Wayne Dela Cruz
e3a0c63975 find method uses filter query 2018-03-01 19:55:26 +08:00
Wayne Dela Cruz
72a2a17d5f Add support for all cases 2018-03-01 19:37:06 +08:00
Wayne Dela Cruz
82c4eaf05c Add or typing 2018-03-01 19:36:20 +08:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Wayne Dela Cruz
cad9bcefb7 Add more typings 2018-02-12 23:31:22 +08:00
Wayne Dela Cruz
3a4de187b2 Collection use filter query 2018-02-12 23:06:36 +08:00
Wayne Dela Cruz
9f14ab9919 Create filter query typing 2018-02-12 23:02:55 +08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Anton Myzenkov
76a6216365 [mongodb] Updated Logger class constructor. (#23140)
Changed parameter "options" of Logger class to optional.
2018-01-24 09:00:34 -08:00
Ankit Tyagi
1d84357470 @types/mongodb - add appname to MongoClientOptions (#23060)
- Based on
  https://mongodb.github.io/node-mongodb-native/3.0/api/MongoClient.html#.connect
2018-01-23 10:44:30 -08:00
lihao
e2a3302098 export mongodb Logger (#23122)
* export mongodb Logger

* format file
2018-01-23 10:11:10 -08:00
Anton Myzenkov
19d6cbd330 [mongodb] Added ChangeStream class (#22872)
* [mongodb] Added ChangeStream class

* Replaced ChangeStreamCallback to MongoCallback
2018-01-18 10:17:58 -08:00
coyotte508
17d8fcc76f Add id to mongodb gridfs upload streams (#22930)
As seen in http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream:

```js
    var uploadStream = bucket.openUploadStream('test.dat');

    var license = fs.readFileSync('./LICENSE');
    var id = uploadStream.id;
```

The resulting stream from `openUploadStream` *has* an id.
2018-01-17 09:46:52 -08:00
Anton Myzenkov
0b9afcec90 [mongodb] Updates Options of Collection Methods (#22855) 2018-01-12 11:53:30 -08:00
Federico Caselli
84e265d13a [mongodb] First update to bring the mongodb to version 3 (#22626)
* First update to bring the mongodb typings to version 3

* Updated tsconfig of the older v2 version

* Set mongodb version to 2 in packages with errors

* MongoClient extends form EventEmitter
2018-01-10 14:14:05 -08:00
Hinell
1a60d6ebf4 [mongodb] Adds ReplaceWriteOpResult 2017-12-17 00:54:09 +03:00
Federico Caselli
519d079279
Fixed autor link typo @mcortesi 2017-12-03 11:53:58 +01:00
CaselIT
c4db7383b8 Updated dbref and exported from mongodb. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21717 2017-11-27 22:33:05 +01:00
Mariano A. Cortesi
6b6db76b81 [mongodb] Include bufferMaxEntries as a MongoClientOption 2017-11-13 13:20:23 -03:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Anton Myzenkov
58206d9fd3 [mongodb] Fix db.listCollections to use the optional parameter "filter" (#20562)
* [mongodb] Fix db.listCollections

Fix db.listCollections to return the information of a all collections.

* [mongodb] Fix db.listCollections

Added overload function for db.listCollections

* [mongodb] Fix db.listCollections

Fix db.listCollections to return the information of a all collections.
2017-10-23 12:50:54 -07:00
Anatoly Demidovich
862695fbb4 fix connect() overload (#20674) 2017-10-18 13:34:17 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Gaurav Lahoti
5795bd4edf mongodb CollectionCreateOptions definition v2.2 update (#20306) 2017-10-06 10:18:30 -07:00
Danny Martini
09f8b5494b mongodb: findOne may return null (#20077)
* mongodb: findOne may return null

* move union type from MongoCallback to `findOne`
2017-10-02 10:31:00 -07:00
Jason Dreyzehner
5fa93bc778 [mongodb] complete CollStats interface, add WiredTigerData interface 2017-08-25 01:27:30 -04:00
Anatoly Demidovich
c4d8f8c49c Fix namespace 2017-08-17 10:44:40 +03:00
Anatoly Demidovich
b10b81eb21 Fix top level declaration 2017-08-17 10:17:25 +03:00
Anatoly Demidovich
f80a0dc0d9 Add connect() and ObjectId 2017-08-17 09:35:06 +03:00
Gady
32c1c2e72b Improve Cursor.count (#18504) 2017-08-01 10:22:51 -07:00
Gady
4bcdd24cad Mongodb insert many (#18473)
* Improve types for Collection.insertMany

* Add contribution

* Remove blank line
2017-07-28 10:03:05 -07:00
Alan Marcell
a060f7558c Change replaceOne to Promise<UpdateWriteOpResult & { ops: Array<any> }> 2017-06-27 16:44:32 -03:00
Alan Marcell
6adf912c38 Add mongodb Collection.replaceOne(...) return type WriteOpResult
In case of Collection.replaceOne(..., {upsert:true}) the return type is an WriteOpResult
2017-06-25 18:32:48 -03:00
King.W
141e4d6a7b Update mongodb-tests.ts
mongodb-tests.ts
2017-06-15 19:36:15 +08:00