nestjs-mongoose Questions
2
Solved
In our codebase we've been using T.lean() or T.toObject() and our return types would be LeanDocument<T>. Mongoose 7 no longer exports LeanDocument, and the existing migration guide suggests u...
Zed asked 11/5, 2023 at 11:49
3
This is my schema and I want to set the role to enum
@Prop({ required: true })
name: string;
@Prop({ required: true })
email: string;
@Prop({ required: true })
password: string;
@Prop()
role: s...
Phenocryst asked 17/6, 2021 at 6:25
7
I've started to play with NestJS, migrating from my old express/mongoose project and immediately crashed into a fence, just following MongoDB/serializations chapters from NestJS docs. I've prepared...
Transfigure asked 11/5, 2021 at 16:6
1
© 2022 - 2025 — McMap. All rights reserved.