Support for complex querying in MongoDB from node.js backend