Files
mongo/jstests/aggregation/bugs/server6530.js
Mathias Stearn 68f6dcd2c3 SERVER-6649 have agg helper throw exceptions and fix tests accordingly
Most of this was done by Samantha Ritter. Thanks!
2012-12-18 15:34:56 -05:00

6 lines
228 B
JavaScript

// server-6530: disallow $near queries in $match operations
load('jstests/aggregation/extras/utils.js');
assertErrorCode(db.foo, {$match: {$near: [0,0]}}, 16424);
assertErrorCode(db.foo, {$match: {$nearSphere: [2,2]}}, 16426);