pubkey / rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
https://rxdb.info/
Apache License 2.0
21.37k stars 1.04k forks source link

Support for couch/pouch linked documents #32

Closed remon-nashid closed 7 years ago

remon-nashid commented 7 years ago

Thanks for herding all those js packages into one coherent database solution!

Since rxdb is based on PouchDB, I'm wondering if it supports linked documents or any way to load referenced documents alongside their referrer. In other words, is there a support for any kind of Joins?

pubkey commented 7 years ago

Hi @remon-georgy there is currently no support for linked documents on RxDB. I was thinking about implementing a ref-keyword like mongoose so that you can .populate() on querys and document-fields. But currently I have other features in focus.

ssured commented 7 years ago

Some days ago I stumbled upon https://github.com/mobxjs/serializr which tries to solve this problem of hydration of JS objects. It's API looks nice and the problem it solves is concise, so it might play well with RxDB. Haven't tried it myself yet

pubkey commented 7 years ago

Done with these commits:

Will be usable in version 3.0.0