Currently, I used MongoVUE to import from current SQL Server database but all PK with uniqueidentifier were converted to something like "Binary - 3:UuidLegacy

My question is how do is create schema for this structure on Mongoose? I can't see Guid/UUID datatype on Mongoose docs http://mongoosejs.com/docs/api.html#schema_Schema.Types
And for more, I get issue when query with ValidationID something like
db.Validations.find({ValidationID: '1389AB5E-56BD-46FD-9A8A-258C7BDE4251'});
It returns nothing although this Guid is exactly same with SQL Server record.
Thanks.
MongoVUE is obscuring things a bit here, but in a nice way that makes it easier to read. Here's what your example
ValidationIDof'1389AB5E-56BD-46FD-9A8A-258C7BDE4251'actually looks like - it'stype 3 BinData:The viewer is converting that to a more readable format for you. It's doing that by converting to hex and adding dashes. For proof:
If you want to find that ID, then strip the dashes and pass that into the find as follows (I inserted a sample doc):
I don't have mongoose set up to test, but have done the leg work in another answer similar to this in terms of converting in
javascript.