These are chat archives for Automattic/mongoose

2nd
Sep 2015
Ivailo Stoianov
@ivailo-stoianov
Sep 02 2015 14:28
Is it possible one field to have more than one reference?
Valeri Karpov
@vkarpov15
Sep 02 2015 15:46
@chetverikov done
@jrthib there isn't currently a way to remove models unfortunately. I would recommend either refactoring to use createConnection() or use a separate model name for each test.
@ivailo-stoianov sure, if that field is an array
@aredo try running that same query in the mongodb shell, enable mongoose debug mode with require('mongoose').set('debug', true); and see what the query is
Ivailo Stoianov
@ivailo-stoianov
Sep 02 2015 15:56
So if it's a string it wont work. I see. I will try to leave without it. Thanks!
arashdoescode
@arashdoescode
Sep 02 2015 23:41
http://stackoverflow.com/questions/28474558/updating-2-mongoose-schemas-in-an-api-call if anyone could answer this question will put a bounty worth of 50