// See SERVER-7794.
let t = db.geo_s2nopoints;
t.drop();

t.createIndex({loc: "2dsphere", x: 1});
assert.eq(
    0,
    t.count({loc: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 10}}}));
