|
|
@@ -203,7 +203,7 @@ public:
|
|
|
* @param {Object} deps set (unique array) of strings
|
|
|
* @returns {Object} BSONObj
|
|
|
**/
|
|
|
- proto.depsToProjection = function depsToProjection(deps) {
|
|
|
+ klass.depsToProjection = function depsToProjection(deps) {
|
|
|
var bb = {};
|
|
|
if (deps._id === undefined)
|
|
|
bb._id = 0;
|
|
|
@@ -247,12 +247,22 @@ public:
|
|
|
* to add this object to a pipeline being represented in BSON.
|
|
|
*
|
|
|
* @method sourceToBson
|
|
|
- * @param {Array} pBuilder BSONObjBuilder: a blank object builder to write to
|
|
|
+ * @param {Object} pBuilder BSONObjBuilder: a blank object builder to write to
|
|
|
* @param {Boolean} explain create explain output
|
|
|
**/
|
|
|
proto.sourceToBson = function sourceToBson(pBuilder, explain) {
|
|
|
throw new Error("not implemented");
|
|
|
};
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reset the document source so that it is ready for a new stream of data.
|
|
|
+ * Note that this is a deviation from the mongo implementation.
|
|
|
+ *
|
|
|
+ * @method reset
|
|
|
+ **/
|
|
|
+ proto.reset = function reset(){
|
|
|
+ throw new Error("not implemented");
|
|
|
+ };
|
|
|
|
|
|
return klass;
|
|
|
})();
|