Skip to content

Support PageInfo for pagination #1343

Closed

Description

@marcjulian

Please add support for PageInfo for pagination.

PageInfo could look like this PageInfo from GitHub v4

interface PageInfo {
 endCursor: string;
 hasNextPage: boolean;
 hasPreviousPage: boolean;
 startCursor: string;
}

The Connection Model could be:

interface ConnectionModel<T> {
 nodes: T[];
 pageInfo: PageInfo;
 totalCount: number;
}

Activity

  1. changed the title [-]Support PageInfo for paging[/-] [+]Support PageInfo for pagination[/+] on Jan 16, 2020
  2. pantharshit00 commented on Jan 17, 2020

    @pantharshit00
    Contributor

    Hi,

    Thanks for reporting this! It has already been reported before, so I am going to close this as a duplicate of https://github.com/prisma/photonjs/issues/321

    Also, @ctrlplusb wrote a helper for this which you are can use as a workaround for now: https://gist.github.com/ctrlplusb/17b5a1bd1736b5ba547bb15b3dd5be29

  3. marcjulian commented on Jan 17, 2020

    @marcjulian
    ContributorAuthor

    Cool @pantharshit00 thank you and have great weekend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions