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

pouchdb-find does not generate or use bookmarks #8497

Open
garbados opened this issue Apr 29, 2022 · 5 comments
Open

pouchdb-find does not generate or use bookmarks #8497

garbados opened this issue Apr 29, 2022 · 5 comments
Labels

Comments

@garbados
Copy link
Contributor

Issue

CouchDB uses bookmarks to allow users to paginate through the results of Mango queries. PouchDB neither generates bookmarks nor interacts with them when provided. This means you cannot paginate through Mango query results with PouchDB unless using the HTTP adapter.

Info

  • Environment: N/A
  • Platform: N/A
  • Adapter: all non-http adapters
  • Server: N/A

Reproduce

const PouchDB = require('pouchdb')
PouchDB.plugin(require('pouchdb-find'))

Promise.resolve().then(async () => {
  const db = new PouchDB('repro')
  await db.post({ hello: 'world' })
  await db.post({ hello: 'world' })
  await db.createIndex({ index: { fields: ['hello'] } })
  const results = await db.find({ selector: { hello: 'world' }, limit: 1 })
  console.log(results.bookmark) // undefined
  await db.destroy() // clean up
})
@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale label Jun 29, 2022
@garbados
Copy link
Contributor Author

garbados commented Jul 1, 2022

Not stale :)

@github-actions github-actions bot closed this as completed Jul 9, 2022
@garbados
Copy link
Contributor Author

:melting_smiley_face:

@the-night-wing
Copy link

not implemented and marked as closed? bruh

@garethbowen garethbowen reopened this Oct 30, 2023
@garethbowen
Copy link
Member

Bad bot...

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

No branches or pull requests

3 participants