Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongoose Mongo 2dsphere geoWithin #4044

Closed
ghost opened this issue Apr 5, 2016 · 5 comments
Closed

Mongoose Mongo 2dsphere geoWithin #4044

ghost opened this issue Apr 5, 2016 · 5 comments
Milestone

Comments

@ghost
Copy link

ghost commented Apr 5, 2016

Please see http://stackoverflow.com/questions/36415162/mongoose-mongo-2dsphere-geowithin for the full description.

The short of it: despite $geoWithin working fine in Mongo, Mongoose keeps telling me [Error: Can't use $geoWithin]

@vkarpov15
Copy link
Collaborator

Next time please put the code samples here, don't just link to SO. Will review this when I get a chance.

@vkarpov15 vkarpov15 added this to the 4.4.13 milestone Apr 8, 2016
@ghost
Copy link
Author

ghost commented Apr 8, 2016

OK. Thanks for the heads up, vkarpov15.

vkarpov15 added a commit that referenced this issue Apr 9, 2016
@vkarpov15
Copy link
Collaborator

Good catch @westandy. Mongoose query casting was filtering out your $geoWithin query, will push a release for this issue early next week.

@ghost
Copy link
Author

ghost commented Apr 11, 2016

Thanks @vkarpov15 for fixing this.

Side question: did you test the other geoSpatials as well ($geoIntersects, $near, $nearSphere)? Would they require a separate issue ticket if they were a problem?

@vkarpov15
Copy link
Collaborator

Yeah open up a separate issue if you have trouble with those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant