Skip to content Skip to sidebar Skip to footer

Mongoose: Cannot Access Populated Value

I can see the populated value in the console but when trying to access it I'm getting undefined: The output has the following format: { _id: 57a9d5cda3c91dda14eb50f0, Name: 'UK' }

Solution 1:

In Schema you have defined the field "name" not "Name" Try with getting profile.countryId.name


Post a Comment for "Mongoose: Cannot Access Populated Value"