diff options
Diffstat (limited to 'jstests/aggregation/bugs/server6468.js')
-rw-r--r-- | jstests/aggregation/bugs/server6468.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/aggregation/bugs/server6468.js b/jstests/aggregation/bugs/server6468.js index aea9586973b..09515c746fa 100644 --- a/jstests/aggregation/bugs/server6468.js +++ b/jstests/aggregation/bugs/server6468.js @@ -2,7 +2,7 @@ c = db.c; c.drop(); -c.save( { a:'foo', b:{ c:'bar', z:'not there' } } ); +c.save({a: 'foo', b: {c: 'bar', z: 'not there'}}); function test(projection) { res = c.aggregate({$project: projection}); @@ -10,7 +10,7 @@ function test(projection) { } // These should all mean the same thing -test({_id:0, 'b.c':1}); -test({_id:0, 'b.c':'$b.c'}); -test({_id:0, b: {c:1}}); -test({_id:0, b: {c:'$b.c'}}); +test({_id: 0, 'b.c': 1}); +test({_id: 0, 'b.c': '$b.c'}); +test({_id: 0, b: {c: 1}}); +test({_id: 0, b: {c: '$b.c'}}); |