Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12703

Pagination Example Within "source/reference/method/cursor.skip.txt" is Incorrect

    XMLWordPrintableJSON

Details

    Description

      Description

      Example currently has...

      `.skip( pageNumber > 0 ? ( ( pageNumber - 1 ) * nPerPage ) : 0 )`

      but it should be...

      `.skip( pageNumber > 0 ? ( pageNumber * nPerPage ) : 0 )`

      Without this fix, the example would result in zero `nPerPage` getting skipped till `pageNumber` = 2.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mike_yamato Shinsuke Yamato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago