Files
mongo/jstests/aggregation/bugs/server6530.js
2012-08-01 20:22:36 -04:00

10 lines
316 B
JavaScript

// server-6530: disallow geo commmands in aggregation
out = db.foo.aggregate({$match: {$near: [0,0]}});
assert.eq(out.code, 16424);
out = db.foo.aggregate({$match: {$within: {$center: [[2,2], 10] }}});
assert.eq(out.code, 16425);
out = db.foo.aggregate({$match: {$nearSphere: [2,2]}});
assert.eq(out.code, 16426);