Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of the pouchdb-find plugin. #92

Open
SwenVogel opened this issue Jan 15, 2018 · 5 comments
Open

Usage of the pouchdb-find plugin. #92

SwenVogel opened this issue Jan 15, 2018 · 5 comments

Comments

@SwenVogel
Copy link

Hi,

it is possible to use the pouchdb-find plugin in combination with relational-pouch?
I would like to use the features of the relational-pouch in combination with the
mongo like query syntax.

@broerse
Copy link
Collaborator

broerse commented Jan 15, 2018

Yes we made it a Peer dependency in v3.0.0. Also take a look at https://github.com/pouchdb-community/relational-pouch#dont-save-hasmany. We use find like this in ember-pouch.

@SwenVogel
Copy link
Author

SwenVogel commented Jan 15, 2018

Thank's for your answer. Did this mean that the db.rel.find(type, options) method accepts
a mango like query as "option" paramater like described here:
https://pouchdb.com/guides/mango-queries.html#query-language

@broerse
Copy link
Collaborator

broerse commented Jan 16, 2018

Sorry but we only added it for db.rel.findHasMany because you need to create the db.createIndex and we have no plan for the normal find yet..

@yduartep
Copy link

yduartep commented Apr 9, 2018

So if I need to make queries over fields I can't use this relational-pouchdb library? I should use the standard pouchdb version with pouchdb-find?

@509dave16
Copy link

@yduartep You have the right of it I think. relational-pouch does not offer any querying beyond providing document IDs and allDocs options to the different find methods. The parseRelDocs method of relational-pouch should be able to help you parse documents that you retrieve from pouchdb-find: https://github.com/pouchdb-community/relational-pouch#dbrelparsereldocstype-pouchdocs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants