問題タブ [motorengine]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mongodb - 近いクエリを実行するための motorengine の mongoengine.GeoPointField に相当するものは何ですか?
私は次のモデルを持っています:
class DbObjectWithCoordinates(Document):
coordinates = GeoPointField() # this used to work with mongengine
を使用して、mongoengine.GeoPointField
特定の座標に近いすべてのオブジェクトを検索するなどのクエリを実行しました。
ただし、GeoPointField
フィールドはモーターエンジンでは使用できません。motorengine でオブジェクトを定義し、このようなクエリを使用することは可能ですか? そうでない場合、この種のユースケースの回避策はありますか?