I have the _id in mongo set to a uuid via node plug in "node-uuid" when I look at the value in robomongo it looks like this
"_id" : UUID("5fe6075a-8157-4dfc-8aab-3316ea9cbf17"),however when I use mongoose to retrieve the value and send it to the client I get a lot of strange characters.
"id":"�\u0007Z�WM���3\u0016ꜿ\u0017"
the schema I'm using is
_id: {
type: String,
default: '',
trim: true
},is there anyway to make this work?
Thanks,
R
--
Documentation - http://mongoosejs.com/
Plugins - http://plugins.mongoosejs.com/
Bug Reports - http://github.com/learnboost/mongoose
Production Examples - http://mongoosejs.tumblr.com/
StackOverflow - http://stackoverflow.com/questions/tagged/mongoose
Google Groups - https://groups.google.com/forum/?fromgroups#!forum/mongoose-orm
Twitter - https://twitter.com/mongoosejs
IRC - #mongoosejs
---
You received this message because you are subscribed to the Google Groups "Mongoose Node.JS ODM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-orm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.