现在我拥有带有MongoDB地理索引的Meteor应用程序。通过graph.cool和Algolia订阅Apollo
而且我用这种发布/订阅的:
Meteor.publish('items', function itemsPublication(NELat, NELong, SWLat, SWLong) {
return Items.find({
$and: [
{
'till': {
$gte: new Date()
}
},
{
'o': { $geoWithin: { $box: [ [ SWLong,SWLat], [ NELong, NELat] ] } }
}
]
}, {
fields: {
o: 1,
t: 1,
}
})
})
我添加一些指标,例如:
Item._ensureIndex({
'till':1, 'o': '2dsphere'
})
一切工作正常...
的主要问题是:是否可以将Meteor pub/sub + MongoDB地理索引更改为Apollo subs + graph.cool作为后端+ Algolia超级快速地理搜索?
我需要真正的反应没有轮询或其他什么东西......
感谢您的回复... – none
@sorenbs是否有任何时间估计对地理查询的本机支持何时可用? :) –
@LucèBrùlè我们还没有具体的时间表。请订阅此问题的更新https://github.com/graphcool/feature-requests/issues/28 – sorenbs