Giter Club home page Giter Club logo

objection-keyset-pagination's People

Contributors

dependabot[bot] avatar tvainika avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

objection-keyset-pagination's Issues

How can i navigate to the next page

Hi,
This is not an issue, a noob question!
Thanks for the this package. I want to show pagination with vuejs with express backend.
I am getting

"paginate": {
"first": 1,
"last": 10
}

this object. How can i navigate to the next page?

Can i get a response something like that?

   "current_page": 1,
    "last_page": 3,
    "next_page_url": "/api/animals?page=2",
    "prev_page_url": null,

Doesn't seem to work

Cool lib, I think the concept is good, unfortunately it doesn't seem to work :/

Tried using this on a small project, using a simple query:

await ModeNamel.query()
    .limit(N)
    .keysetPage()

but result.keyset is always equal to: { first: {}, last: {} }

Does not work with examples like orderBy('profile.id')

Hi, so what is happening with me is

fetch 1 (ok)

.orderBy('id') => keyset { first: 3, last: 6 }

fetch 2 (fail)
error: column reference "id" is ambiguous"

(so it can't get the 2nd page)


fetch 1 (fail)

.orderBy('profile.id') => keyset {}

(if I try to define it, keyset returns empty)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.