We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc7524 commit a54b227Copy full SHA for a54b227
src/builders/core-query.js
@@ -1,8 +1,11 @@
1
+
2
/**
- * Returns core query object from optional querystring inputs
3
+ * Builds Mongo query for core data endpoints from querystrings
4
+ * @param {Object} req The Express request object to build queries
5
+ * @return {Object} Mongo compatible query object
6
*/
7
-exports.coreQuery = (req) => {
8
+module.exports.coreQuery = (req) => {
9
const query = {};
10
11
if (req.query.core_serial) {
0 commit comments