0

My data in MongoDB is structured like this: Object.comment.Value

When I add '{{comment}}' to call from Mongo the following is displayed on the interface (see screen grab) instead of the real value that exist in the DB.

Any ideas? I feel like this is an obvious miss. Thanks in advance!

enter image description here

Devvvvv
  • 82
  • 9
  • {{comment?.Value}}..? Or {{comment | json}} – MikeOne Sep 23 '20 at 19:34
  • {{comment | json}} returns { "undefined": null } {{comment?.Value}} returns nothing – Devvvvv Sep 23 '20 at 19:41
  • Okay, so what comes back is not what you expect. Comment contains this { "undefined": null } - which is an object really. What do you see in the network tab of your console and what does your http code looks like? – MikeOne Sep 23 '20 at 20:53
  • Looks like the content of Mongo *is* showing in the call when I inspect the Network tab. – Devvvvv Sep 24 '20 at 14:52

0 Answers0