Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

_design documents crud #6

Open
5 tasks
gp187 opened this issue Jan 17, 2019 · 0 comments
Open
5 tasks

_design documents crud #6

gp187 opened this issue Jan 17, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gp187
Copy link
Contributor

gp187 commented Jan 17, 2019

Follow the naming convention in couch2.db and create a CRUD for design documents. Read carefully the docs, it's a bit tricky

naming convention must match the current naming convention

  • docCreate >> docViewCreate
  • docCreateWithId >> docViewCreateWithId
  • docViewUpdate >> docViewUpdate
    ..... etc
    These refer to the actual _design document.

To call the view data, use a new convention

  • callView
  • callViewOrThrow
    ....

Create some sample view design documents documents

with counter and examples from here

@gp187 gp187 added the enhancement New feature or request label Jan 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants