Implemented code in a way so that combinations of excluded/included fields get handled in the correct way. NOTE: You cannot mix them due to a mongo restriction right now.
Fixed spelling error and removed debug code.
Fixed regex syntax problem for "like" query.
Created module for building filters so all modules can implement a "search" method.
Added query method.
Removed search modules, now any entity can search it's own model.
Simplified function for readability.
Removed console.log
Removed console.log.
Removed search module references.
Added a condition to treat 0 as a null.
Updated test.
Added test for root level child nodes.
Updated route path for searching content and users.
Removed uneeded module reference.
Added code necessary to query users.
Updated route path for searching content and users.
Added user query function and cleaned up the code.
Added tests for quering a user
Fixed the test for root level nodes.