orlandos-nl / MongoKitten

Native MongoDB driver for Swift, written in Swift

Home Page:https://orlandos.nl/docs/mongokitten/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helper Support for Geospatial Queries?

micyxcv opened this issue · comments

Hi!
Is there a way to perform GeoSpatial queries in the current version?
I've seen the GeoNearOptions struct in the docs, but it guess it didn't make it to the last version...
Thanks for your effort!

Hello @micyxcv,

There is always support for "custom" commands. In a way, all commands in MongoKitten 6 are custom but provided by default. Almost all of them could be implemented manually.

Is there a specific list of features/commands you'd like to see first around GeoSpatial queries?

Thanks!

Hello @Joannis,

I'm primarily interested in querying a db with the $geoWithin and $near operators and how to set up models/documents with GeoJSON object types.

Best regards
Michael