如何在谷歌数据存储查询filter处理浮点?

我一直在使用Google DataStore尝试将查询从SQL数据库迁移到DataStore。 我在Node中工作,试图在一个实体上过滤。

该实体具有以下字段。

Exchange: String Threshold: Floating Point Number Pairing: String Userid: String 

我可以使用Google云端平台Web视图的按类别查询function成功查询实体。

我目前的代码实现似乎没有返回我想要的正确的响应,虽然我能够作出请求,当我离开阈值filter行。 也build立了适当的指标。

 const query = datastore.createQuery('notifications_info') .filter('exchange', '=', objectToRequest.exchange) .filter('threshold', '<=', 0) .filter('threshold', '>', -3) .filter('pairing', '=', objectToRequest.pairing); datastore.runQuery(query,function(error, results){ if(error){ console.log(error); } else if (results){ console.log(results); callback(error, results); } }); 

对象要求

 var objectToRequest = { exchange: 'gdax', time_interval: 60 } 

数据存储中的实体

 | Exchange | Pairing | Threshold | | gdax | ethusd | -1 | | gdax | ethusd | -1 | | gdax | ethusd | -0.1 | 

我能够使用除数字和浮点之外的任何东西来成功查询。 我希望有人能指出我正确的方向如何处理与浮点filter。 由于不被Node支持,GQL似乎不是一个选项。

谢谢。