Gady and Sheetal Nandi
32c1c2e72b
Improve Cursor.count ( #18504 )
2017-08-01 10:22:51 -07:00
Gady and Andy
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 and GitHub
141e4d6a7b
Update mongodb-tests.ts
...
mongodb-tests.ts
2017-06-15 19:36:15 +08:00
King.W and GitHub
a52b00b18b
Create index.d.ts
...
change type of `Default` to `any`
2017-06-15 17:21:47 +08:00
beary and GitHub
424873bdfa
Add default generic to FindAndModify... interface
2017-06-09 09:37:32 +08:00
beary and GitHub
1f3527ba51
Add default type argument to Collection interface
2017-06-08 10:58:40 +08:00
beary and GitHub
a511933e67
Merge branch 'master' into master
2017-06-08 10:47:47 +08:00
Federico Caselli and Andy
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 and GitHub
e33c2ab476
Move ts version comment to correct location
2017-06-07 10:19:50 +08:00
beary and GitHub
f421bc7be5
Move ts version comment to end of the header
2017-06-07 09:51:29 +08:00
beary and GitHub
68153fbcfa
Add "// TypeScript Version: 2.3"'
2017-06-07 09:40:02 +08:00
hinell and Andy
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 and GitHub
b0d31d86b1
Add generic to findOneAnd*** functions
2017-05-04 19:19:41 +08:00
beary and GitHub
22b3831e31
Add generic to collection
2017-05-04 18:22:34 +08:00
beary and GitHub
920d2d7bdf
Add default generic to Collection
...
TypeScript support default generic since version 2.3, so add generic to Collection.
2017-05-04 18:13:19 +08:00
beeme1mr and Mohamed Hegazy
950c9cdca9
Added a code property to MongoError ( #16242 )
...
Added missing code property to MongoError.
http://thecodebarbarian.com/mongoose-error-handling
2017-05-01 13:49:14 -07:00
Paul Murray and Mohamed Hegazy
e8d4865015
fix CollectionAggregationOptions.maxTimeMS ( #16226 )
...
`maxTimeMS` on `CollectionAggregationOptions` should be `number` not `boolean`
2017-05-01 13:12:09 -07:00
Jakub Sedlacek and Sheetal Nandi
fc7212862d
mongodb: add partialFilterExpression to indexOptions ( #16109 )
...
Add an optional extended description…
2017-04-26 10:03:41 -07:00
Fábio Batista
16be2fcb11
@types/{bson,mongodb,mongoose}: added Decimal128 type
2017-04-07 21:18:51 -03:00
Federico Caselli
f54704a9eb
Added missing bson methods and removed duplication on mongodb
2017-03-31 13:42:17 +02:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00