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

Client side validation functions #33

Open
natew opened this issue May 8, 2017 · 1 comment
Open

Client side validation functions #33

natew opened this issue May 8, 2017 · 1 comment

Comments

@natew
Copy link

natew commented May 8, 2017

Is this possible? For an offline-first app it seems you'd want to be able to pass your design doc directly to this plugin. Otherwise you require syncing with couchdb to ensure validations are ok.

Second question, is this maintained? I notice tons of greenkeeper PR's and no activity for a while.

@marten-de-vries
Copy link
Member

It should currently work as it's used in express-pouchdb, but I'm indeed neglecting greenkeeper. Any 'real' PRs will be merged, though.

pouchdb-validation does offline validation, so your use case of creating an offline design document should work just fine. Just db.put() the design doc, and then use the validation functions. It's just nicer to sync them from the server as that way you can be sure the server and client use the same checks. But it's not required.

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

2 participants