These are chat archives for Automattic/mongoose

5th
Jun 2016
Paul "Joey" Clark
@joeytwiddle
Jun 05 2016 13:20
One problem we have had (with aggregate queries) was sending id strings when we should have sent ObjectIds. The solution was to turn the ids into ObjectIds before we sent them, using a function like this:
const mapIdsToObjectIds = ids => ids.map(id => ObjectId(id));
Jack Louvton
@jackishere
Jun 05 2016 17:30
Hello , What is the way to format JSON string that will be automatically recognised as Mongo date ??