Ron Buckton
e213806fb2
[mongodb] Make arrayFilters optional.
2018-10-28 16:26:56 -07:00
Wyatt Johnson
f70415ab95
review: fixes based on review
2018-10-25 10:29:52 -06:00
Wyatt Johnson
6b36894dee
feat: added arrayFilters to update operations, some cleanups
2018-10-23 18:07:17 -06:00
Krzysztof
13327ae0fc
[mongodb] Allow "date" type in $currentDate ( #29568 )
2018-10-09 11:12:21 -07:00
Florian Richter
53fa2492da
mongodb: Fixed incomplete types from #29429 ( #29546 )
...
* mongodb: Fixed incomplete types (#29429 )
* mongodb: Small fixes
2018-10-08 14:28:49 -07:00
hector7
e15cb60ee0
[mongodb] Checked TSchema on insert and update documents ( #29245 )
...
* Schema definition on insertOne, insertMany and update definitions. Added types as OptionalTSchema and UpdateQuery.
* added user on definitions by
* added missing properties and url docs
* added missing properties and url docs with test
* added missing properties and url docs with test
* changed OptionalTSchema to Partial, modified logic on update funcs, this will be more strict
2018-10-01 21:12:14 -07:00
Nathan Shively-Sanders
b36bc1402c
Merge pull request #29058 from lirbank/master
...
[mongodb] Add 'errmsg' prop to MongoError
2018-09-21 14:34:56 -07:00
Mikael Lirbank
52ecd09a4a
Update documentation with more details
2018-09-21 10:16:37 -07:00
Wyatt Johnson
fc759dcbef
feat: added AggregationCursor.hasNext
2018-09-20 21:55:27 -06:00
Mikael Lirbank
043cedd0a1
Update documentation
2018-09-20 11:37:07 -07:00
Mikael Lirbank
4b9c703808
Documentation
2018-09-20 09:34:30 -07:00
Mikael Lirbank
2cc1c0c18d
[mongodb] Add 'errmsg' prop to MongoError
2018-09-20 09:17:31 -07:00
various89
95d036d4b6
adds session and multi-document transactions to mongodb / mongoose ( #28745 )
...
* adds sessions and multi-document transactions
* avoid duplicate interfaces
extends options of GridFSBucketWriteStream
* adds type for options paramater of method withSession
2018-09-11 08:20:50 -07:00
Pierre Buyle
7c1ab4c1e9
Cursor's batchSize is optional in aggregate ( #28710 )
...
The `batchSize` property of the `cursor` option in `Collection.aggregate` is optional.
2018-09-10 14:53:20 -07:00
angela-1
6044dd7c47
add family option to mongodb SocketOptions ( #28748 )
...
* add family option to SocketOptions.
* give the family value of mongodb type SocketOptions.
2018-09-10 14:44:00 -07:00
Viktor Taranenko
21df98f98f
Added forEach variant returning promise
...
According to line 731 in [source](http://mongodb.github.io/node-mongodb-native/3.1/api/lib_cursor.js.html ), callback is optional and if not provided, the fuction returns Promise
2018-08-09 17:55:39 +01:00
Gady
0d4583d282
Remove Gady from contributors ( #27763 )
2018-08-01 11:38:40 -07:00
Jimmy Shimizu
253339569f
fix: Correct KeepAlive settings for 2.2 and 3.x versions ( #27753 )
2018-08-01 11:38:08 -07:00
error
43de02ea1d
add bson/Int32 to exports ( #27662 )
2018-07-30 11:08:07 -07:00
geraldinelemeur
b7ba5e828b
[mongodb] Cursor.next() resolves to null if no more documents. ( #27402 )
2018-07-20 18:00:59 -07:00
Will Koster
5d63e04d34
Fix type of mongodb.connect ( #27398 )
...
It had never been updated from 2.x. Fixes #23548 .
2018-07-20 17:51:22 -07:00
Wan Bachtiar
2dd2e60a64
[mongodb] Added countDocuments() and estimatedDocumentCount() ( #27008 )
...
* Added countDocuments() and estimatedDocumentCount() as count() is deprecated. See NODE-1501
* Added deprecated sign for count
* Format deprecated comment per review. Removed @kikar as requested.
2018-07-03 09:24:37 -07:00
Bastien Arata
4fd5b3efe1
✏️ remove double https
2018-06-29 11:43:33 +02:00
Bastien Arata
f5e6d9c019
🔀 merge upstream
2018-06-29 11:36:26 +02:00
Bastien Arata
abd3ec9113
✏️ add github profile
2018-06-29 11:32:17 +02:00
Andres Kalle
26e9425633
mongodb: improved overloads for Collection.aggregate()
2018-06-28 21:57:23 +03:00
Bastien Arata
d47edadb76
🔧 set property optional
2018-06-28 17:10:41 +02:00
Bastien Arata
3e31f0623d
🐛 add missing options for 3.1
2018-06-28 16:30:48 +02:00
Paul van Brenk
35b0085e6e
Merge pull request #26860 from Denys-Bushulyak/master
...
Update types/mongodb/index.d.ts
2018-06-26 15:41:17 -07:00
Andres Kalle
32ce4b62f6
mongodb: improved overloads for Collection.count()
2018-06-26 23:04:46 +03:00
Denys Bushulyak
e1b009a096
Update types/mongodb/index.d.ts
2018-06-26 21:55:14 +03:00
Bastien Arata
6549dfe6dd
🐛 fix missing options in CollectionBulkWriteOptions
...
http://mongodb.github.io/node-mongodb-native/3.0/api/Collection.html#bulkWrite
2018-06-22 18:19:36 +02:00
Bastien Arata
56fbdf8399
✏️ fix bulk spelling
2018-06-22 18:17:44 +02:00
Jordan Van Walleghem
d01f89083f
Merge branch 'master' into feature/mongodb-no-implicit-any
2018-06-18 23:08:06 +02:00
Jordan Van Walleghem
48996f6e0b
Fixed mongodb typings implicit any error
2018-06-18 18:43:19 +02:00
Kelvin Jin
2bed737401
[mongodb] use T as type rather than value
2018-06-15 16:49:40 -07:00
Dobes Vandermeer
42b5630be7
Remove extra whitespace
2018-06-13 16:10:19 -07:00
Dobes Vandermeer
79c3a025a3
Update generic type of map to reflect variable output type
...
The output type of the contents of the Cursor should match the return type of the mapping function.
See also https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15991
2018-06-12 17:14:34 -07:00
Andres Kalle
2317d90c2a
mongodb: removed extraneous parameter
...
from MongoClient.isConnected
2018-05-28 01:46:06 +03:00
Julien Chaumond
fb84e423e8
Fix profiling levels ( #25521 )
2018-05-04 15:55:22 -07:00
Operations Research Engineering Software+
1a3875f3e4
update index.d.ts ( #25441 )
...
* update index.d.ts
the constructor takes an optional string first argument, and an optional options second argument
* Update index.d.ts
the first argument to the constructor is actually a required arg according to the docs.
2018-05-01 08:58:59 -07:00
Dan Aprahamian
4ee88a7a4b
docs(mongodb): documenting mongodb client option minSize ( #25372 )
2018-04-27 23:29:49 -07:00
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