These are chat archives for Automattic/mongoose

30th
Jul 2015
Fayi Femi-Balogun
@fayimora
Jul 30 2015 13:42

HIya, I’m trying to write an id to to firebae but it keeps writing jibberish. Basically, i have a reference in a Delivery model that looks like this:

customer: {type: Schema.ObjectId, ref: 'User’}

Now when i write delivery.customer to console, i get the right id but when i do the same thing to firebase i get something like this:

customer_id: { _bsontype: ObjectID, id: U~êtdWdYë }

Any idea what the problem is?

Fayi Femi-Balogun
@fayimora
Jul 30 2015 14:07
mainly, why is the id field in the object notthe actual id?
David Baldwynn
@whitef0x0
Jul 30 2015 18:41
Is mongoose 6x as slow as the native driver?
*slower
Roberto
@Kalevera
Jul 30 2015 21:28
has anyone had issues writing a geoJSON sub-document that is embbeded in a document schema? I was having no issues with the schema prior to adding the sub document. once added it will no longer write to the DB. I have my code here: http://stackoverflow.com/questions/31710848/mongoose-create-is-not-sending-assigned-value/31711276?noredirect=1#comment51389902_31711276