Re: [nodejs] Mongoose DBrefs - Cast to ObjectId failed for value

2013-02-07 Thread Daniel Rinehart
Best to post these Mongoose specific questions on the dedicated Google group: https://groups.google.com/forum/?fromgroups#!forum/mongoose-orm -- Daniel R. dani...@neophi.com [http://danielr.neophi.com/] On Wed, Feb 6, 2013 at 4:12 PM, Declan Elcocks declan.elco...@gmail.comwrote: I have a

[nodejs] Mongoose DBrefs - Cast to ObjectId failed for value

2013-02-06 Thread Declan Elcocks
I have a Team Schema holding details about teams, and a Match Schema to store these teams in. I am trying to make it so that the home/away teams in the Match Schema are references to the Team object. I have put my code below, I'm getting an error when saving the Team but I can't help but feel