stargate / stargate-mongoose

Mongoose Node.js package for Apache Cassandra / DataStax Astra

Home Page:https://stargate.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translate vector filter

kathirsvn opened this issue · comments

The vector filter that stargate-mongoose needs to support is in below format

.sort({ $vector: { $meta: [1,2] } })

And JSON API expects the same in below format, so there must be a translation done in the driver

".sort" : {"$vector" : [1,2]}