These are chat archives for Automattic/mongoose

19th
Aug 2015
Luke A. Greenleaf
@gishmel
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

hellboy81
@hellboy81
Aug 19 2015 06:45
Hi. How can I test modules that uses mongoose models (as require)?
winnipegcompsci
@winnipegcompsci
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: http://stackoverflow.com/questions/32105567/mongodb-querying-large-collections