summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server6530.js
blob: de2ec9c0912aaa0e5b855c1566e94f72aec3c521 (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);