summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server6530.js
blob: eb69516255f66b6506be44a392211af781462d40 (plain)
1
2
3
4
5
// 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);