These are chat archives for LearnBoost/mongoose

3rd
Feb 2015
Jeff Dupont
@jeffdupont
Feb 03 2015 00:23
Is there a way to bypass the SchemaType to update a value to the correct SchemaType??
I have a document that has an updated_at value in Mongo that is an ISODate() and we're trying to update all documents to use a Number for a timestamp instead. But I'm getting a CastError "Cast to number failed for value \"Mon Feb 02 2015 13:33:02 GMT-0700 (MST)\" at path \"updated_at\"" even though I have manually changed the updated_at value to a timestamp before .save()
Jeff Dupont
@jeffdupont
Feb 03 2015 20:55
LearnBoost/mongoose#2641