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 2ff9d74 commit 3a5d25dCopy full SHA for 3a5d25d
src/builders/project-query.js
@@ -1,9 +1,13 @@
1
-/**
2
- * Returns project query for past/upcoming launches
3
-*/
4
+// Prevent incorrect input
5
const lowerCase = require('lower-case');
6
+/**
+ * Builds Mongo projection object to show/hide document id field
7
+ * @param {Object} req The Express request object to access querystrings
8
+ * @return {Object} Mongo compatible projection object
9
+ */
10
+
11
exports.queryProject = (req) => {
12
const query = {};
13
0 commit comments