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
King.W
a52b00b18b
Create index.d.ts
...
change type of `Default` to `any`
2017-06-15 17:21:47 +08:00
beary
424873bdfa
Add default generic to FindAndModify... interface
2017-06-09 09:37:32 +08:00
beary
1f3527ba51
Add default type argument to Collection interface
2017-06-08 10:58:40 +08:00
beary
a511933e67
Merge branch 'master' into master
2017-06-08 10:47:47 +08:00
Federico Caselli
7fc1644080
[mongodb] Added support for default generic types ( #16198 )
...
* Added support for ts2.3 default generic types
* Updated find and findOne
* Capitalized TypeScript Version
* Added missing TypeScript Version: 2.3
* Added TypeScript Version: 2.3 to express-brute-mongo; removed easy-jsend test dependency on mongoose
2017-06-07 10:41:33 -07:00
beary
e33c2ab476
Move ts version comment to correct location
2017-06-07 10:19:50 +08:00
beary
f421bc7be5
Move ts version comment to end of the header
2017-06-07 09:51:29 +08:00
beary
68153fbcfa
Add "// TypeScript Version: 2.3"'
2017-06-07 09:40:02 +08:00
hinell
aa3d118ed7
[Mongodb] MongoClient.connection() options v2.2. ( #16932 )
...
* Mongodb client.connect options v2.2
* Mongodb::dt-header typescript v2.0 -> v2.3
Read more on typescript ``object`` [type](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/release%20notes/TypeScript%202.2.md#object-type )
* Fix trailing ' mark
* Ttravis errors,mongodb: downgrade TS version to 2.2
* Merge SocketOptions into MongoClientOptions
* Urgent fix MongoDB.connect() options
Most common SSL options now gathered in one
place in SSLOptions interface.
SSLOptions and newly added HighAvailabilityOptions interface
are shared by ServerOptions, MongosOptions
and ReplSetOptions interfaces respectively
SocketOptions extends SSLOptions.
Updates ReadPreference interface to v2.2
Updates docs links.
* Restore formatting style
* SocketOptions, ServerOptions & ReplSetOptions
SocketOptions
Removes extension of SSL- and HighAvailability- Options
ServerOptions
Adds missing options
ReplSetOptions
Adds missing extensions of SSL- and HighAvailability- Options
2017-06-05 06:31:55 -07:00
beary
b0d31d86b1
Add generic to findOneAnd*** functions
2017-05-04 19:19:41 +08:00