Aurelia
Aurelia

Reputation: 1062

Mongo Express doesn't correctly display embedded documents

I'm using Mongo Express to view my data in my MongoDB instance during development. I also use the connect-mongo module to store my sessions in MongoDB. For some reason, Mongo Express has difficulties parsing embedded documents created by connect-mongo. The indention doesn't quite work and quotes are escaped. Documents created in connect-mongo do work, as well as those created with mongoose.

Upvotes: 0

Views: 425

Answers (1)

mrówa
mrówa

Reputation: 5771

Looks like connect-mongo stores its data as strings, rather than as embedded documents. You can try using the default MongoDB shell - mongo and confirm if it's the case.

Upvotes: 1

Related Questions