Now I have Meteor app with MongoDB geo-indexes.
And I'm using this kind of pub/sub:
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,
}
})
})
And I add some indexes, for example:
Item._ensureIndex({
'till':1, 'o': '2dsphere'
})
Everything working fine...
The main question is: is it possible to change Meteor pub/sub + MongoDB Geo-indexes to Apollo subs + graph.cool as backend + Algolia super fast Geo searching?
I need real reactivity without polling or something else...