From 6e9bf5a0274e686d080333c1b582c978b69eaf83 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 24 Oct 2016 17:31:17 -0700 Subject: [PATCH] Fix exception when generating MongoDB projection from query --- lib/query.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/query.coffee b/lib/query.coffee index aee876e..d7a4f42 100644 --- a/lib/query.coffee +++ b/lib/query.coffee @@ -166,7 +166,7 @@ queryProjection = (query, proj) -> for k,v of query if k.charAt(0) == '$' # this is a logical operator for q in v - projection(q, proj) + queryProjection(q, proj) else proj[k] = 1 return proj