Giter VIP home page Giter VIP logo

Comments (5)

kikoseijo avatar kikoseijo commented on July 19, 2024

I can confirm on the demo project the cursors are also going crazy.

this is to get second page: jobs(first:3, after:"YXJyYXljb25uZWN0aW9uOjM="){ works OK

"pageInfo": {
        "count": 3,
        "total": 30,
        "currentPage": 2,
        "lastPage": 10,
        "startCursor": "YXJyYXljb25uZWN0aW9uOjg=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjEy"
      },

To get page 3: jobs(first:3, after:"YXJyYXljb25uZWN0aW9uOjEy"){ now we get it wrong

"pageInfo": {
        "count": 3,
        "total": 30,
        "currentPage": 5,
        "lastPage": 10,
        "startCursor": "YXJyYXljb25uZWN0aW9uOjY1",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjc1"
      },

After this we get empty data because the jump offset its wrong:

jobs(first:3, after:"YXJyYXljb25uZWN0aW9uOjc1"){

"pageInfo": {
        "count": 0,
        "total": 30,
        "currentPage": 26,
        "lastPage": 10,
        "startCursor": "YXJyYXljb25uZWN0aW9uOjA=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjA="
      },

from lighthouse.

chrissm79 avatar chrissm79 commented on July 19, 2024

@kikoseijo Thanks for reporting, I'll check it out because that does look off.

from lighthouse.

kikoseijo avatar kikoseijo commented on July 19, 2024

Thanks @chrissm79 , if you can confirm also that the relay connection issue, because driving me crazy, no rush, just know its not my end ill be more than happy.

Got a server with version v2.1-beta.3 and webonyx/[email protected] where relay type its working ok, but not on latest, trying to see what webonyx/graphql-php changed to this to happened.

from lighthouse.

kikoseijo avatar kikoseijo commented on July 19, 2024

The connection/relay swap got introduced on the v2.0.2 version.

The cursor error its older,

the funny thing its that tests are passing using the relay connection type and the $first variable.

from lighthouse.

kikoseijo avatar kikoseijo commented on July 19, 2024

resolves the issue of the cursor: #91

from lighthouse.

Related Issues (20)

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.