Comments (1)
As far as I can see, there is population happening inside the cursor's next() function. I think the issue might be because of wrong type return I guess.
As is visible here, the cursor()
function is returning Cursor of type DocType
(which is the original parent type) instead of the ResultType
(which is the type of the populated doc).
@vkarpov15 Is this intended? If this is a bug which can be fixed, I'll love to create a PR for this
from mongoose.
Related Issues (20)
- Follow up to "populated documents get saved as strings"
- $push does not push the new item to an array field on mongoDB HOT 1
- mongoose omits filter query parameters, if they are not in the schema, without an error HOT 3
- Mongoose is throwing Unhandled Quiesce mode error that the Mongo driver doesn't throw HOT 7
- Document.prototype.toObject() should run all getters on fields in subdocuments when getters option is set to true HOT 2
- 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
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.