Hi,
It seems ShareDB support live-queries and that's super nice! The query change seems to be handled by applying diffs (changes, operations) of the main document to the previous query results.
Then comes the question, what kind of query is supported? I have implemented similar live query systems before. and I found it really hard to implement anything other than simple (Filter, Sort) queries. So for example, joins is not supported, where as joins is supported on traditional SQL systems.
So is there a defined set of queries that can be performed? Is it hard to expand the current method to other kind of queries?