I'm attempting to write a DB adapter for PocketBase. I've got it mostly working (https://github.com/nathanstitt/pbtsdb) but am having difficulties supporting the PocketBase expand https://pocketbase.io/docs/working-with-relations/#expanding-relations which is how it handles fetching associated records in one request.
It seems like ideally we could write a query like:
useLiveQuery((q) => q.from({ books }).expand('authors'))
However, maybe that doesn't fit into the design of queries and they should be adapter agnostic? I can of course set the expand in the queryFn of the collection, but that means that all requests would use it and it would be nice to be able to opt-into the expanded request only when needed.