We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84dffc3 commit 5484542Copy full SHA for 5484542
test/document.test.js
100644
100755
@@ -2860,12 +2860,16 @@ describe('document', function() {
2860
2861
var MyModel = db.model('gh4014', schema);
2862
2863
- MyModel.
2864
- where('geo').near({ center: [50, 50] }).
2865
- exec(function(error) {
2866
- assert.ifError(error);
2867
- done();
2868
- });
+ MyModel.on('index', function(err) {
+ assert.ifError(err);
+
+ MyModel.
+ where('geo').near({ center: [50, 50], spherical: true }).
+ exec(function(err) {
2869
2870
+ done();
2871
+ });
2872
2873
});
2874
2875
it('skip validation if required returns false (gh-4094)', function(done) {
0 commit comments