Mongoose Schema with nested properties in typescript
I faced similar issues recently and here was how I resolved it;I simply added a type assertion..
U.credentials!.email = "test@yopmail.com"
I faced similar issues recently and here was how I resolved it;I simply added a type assertion..
U.credentials!.email = "test@yopmail.com"