Comments (3)
So the lack of coercion when using an update pipeline is expected behavior, although something we need to document.
The fact that update: { $set: { dateProperty: date6.toISOString() } }
doesn't compile is an issue, we're working on fixing that.
from mongoose.
In addition, wanted to say a big thank you to the maintainers here!
from mongoose.
Wonderful! Thank you @vkarpov15 and mongoose team!
I'm a huge fan of making the update pipelining more explicit -- I think it can be easy to put an array in an update operation and not realize that casting and validation is turned off.
from mongoose.
Related Issues (20)
- Is there any way to suppress MongoServerError: Collection SOME COLLECTION already exists. HOT 1
- InferRawDocType not same type return from .lean() HOT 3
- Getters not applied in 3-level nested subdoc with `toObject({ getters: true, virtuals: false })` in 8.5 HOT 3
- New FilterQuery type (from 8.6.0) disallows $expr at the query root (type error) HOT 1
- TypeScript returns an error if you run a query on a subclass field of a model HOT 2
- Support for options argument when creating a single document in Model.create() HOT 3
- Array `addToSet()` and `push()` methods do not work with transaction retries HOT 7
- MaxListenersExceededWarning on connection.useDb calls
- Document set merge doesn't work for multi layer nested documents HOT 3
- Breaking TypeScript Change in updateMany from v8.5.5 to v8.6.0 HOT 4
- Breaking TypeScript Change in find from v8.5.5 to v8.6.0 HOT 7
- _id no longer seems to be recursively included when bundled with webpack HOT 3
- syncIndex option to hide instead of drop index HOT 3
- Mongoose aws4 wrong service account HOT 2
- Make path in keyof T required in SchemaDefinition if T is supplied HOT 1
- .toObject is not available in populated child
- Return type of `document.depopulate()` is still the populated document type HOT 1
- Mongoose findOneAndUpdate hangs under heavy load HOT 25
- Setters property of schema types not available in TS declarations
- Connection ignoring the `compressors` option HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose.