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

.limit(10) not working #12

Open
tolyanor opened this issue Jun 8, 2019 · 1 comment
Open

.limit(10) not working #12

tolyanor opened this issue Jun 8, 2019 · 1 comment

Comments

@tolyanor
Copy link

tolyanor commented Jun 8, 2019

this code

    return app.dbPages.find(slctr).limit(10).then(resp => {
      return {
        pages: resp,
        allTags: app.allTags
      }
    }).catch(err => console.log(err))

generate error:
app.dbPages.find(...).limit is not a function

@daniellizik
Copy link

use .cfind

    return app.dbPages.cfind(slctr).limit(10).then(resp => {
      return {
        pages: resp,
        allTags: app.allTags
      }
    }).catch(err => console.log(err))

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