Add Option `refPath` to `mongoose.SchemaTypeOptions`
See original GitHub issuePrerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the issue has not already been raised
Issue
I have just noticed that the type for mongoose.SchemaTypeOptions
does not include the option refPath
.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Mongoose v6.8.1: SchemaTypeOptions
If truthy, Mongoose will build a unique index on this path when the model is compiled. The unique option is not a validator....
Read more >mongoose/History.md - UNPKG
mongoose /History.md ; 3, * fix(schema): check that schema type is an object when setting isUnderneathDocArray #10361 [vmo-khanus](https://github.com/vmo-khanus).
Read more >How do you add Multiple options to one Mongoose Schema?
Sorry, I figured how to work it out. For anyone wondering: const exampleSchema = new Schema({ title: String, price: Number, ...
Read more >backend/node_modules/mongoose/History.md - Git01Lab
fix(model): support populate option for insertMany() as a workaround ... have refPath but none of the subdocs have refPath #8553; docs: add ......
Read more >Populate - Mongoose - W3cubDocs
The refPath option is a more sophisticated alternative to ref . If ref is just a string, Mongoose will always query the same...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i didnt look into the class itself before opening this issue, so i will change the title to match the “new state”
@Uzlopak yes it’ll work. The property definitions in
SchemaTypeOptions
are just for documentation and readability, but thanks for the reminder. I’ll addrefPath
there too.