nestjs-typegoose | Typegoose with NestJS | DB Client library
kandi X-RAY | nestjs-typegoose Summary
kandi X-RAY | nestjs-typegoose Summary
Injects typegoose models for nest components and controllers. Typegoose equivalant for @nestjs/mongoose. Using Typegoose removes the need for having a Model interface.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nestjs-typegoose
nestjs-typegoose Key Features
nestjs-typegoose Examples and Code Snippets
Community Discussions
Trending Discussions on nestjs-typegoose
QUESTION
I'm attempting to save an array of TaskOutcome
subdocuments in my Task
model, following the typegoose documentation:
ANSWER
Answered 2022-Jan-06 at 16:02Arrggghh. Ignore me. The code above is working perfectly fine.
Instead there seems to be a bug with the Nest.js ValidationPipe
, which was very subtly mangling my incoming TaskDTO data - so my outcomes
array looked fine at a glance in the console, but was actually an array of arrays, instead of an array of objects.
So typegoose was rightly ignoring it. If anyone stumbles on to this question, check the data you are saving really is exactly what it should be
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nestjs-typegoose
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page