These are chat archives for Automattic/mongoose

Aug 2015
Luke A. Greenleaf
Aug 19 2015 01:58
is there a way to declare a default for an array of references so I can populate them as I get them out of mongodb?

I have been having difficulty as my array looks as follows:

hand: [{type: Number, ref: 'Card' }]

can't put default into that object and not sure how else to do it

Aug 19 2015 06:45
Hi. How can I test modules that uses mongoose models (as require)?
Aug 19 2015 21:51
Anyone have any advice here, I'm trying to query a rather large collection (500k documents), and am having issues with it allocating memory. I have the code I was working on here: