Please add support for `PageInfo` for [pagination](https://github.com/prisma/specs/tree/master/photonjs#pagination-before-after-first-last-skip). `PageInfo` could look like this [PageInfo from GitHub v4](https://developer.github.com/v4/object/pageinfo/) ```typescript interface PageInfo { endCursor: string; hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string; } ``` The [Connection Model](https://graphql.org/learn/pagination/#complete-connection-model) could be: ```typescript interface ConnectionModel<T> { nodes: T[]; pageInfo: PageInfo; totalCount: number; } ```
Activity
[-]Support PageInfo for paging[/-][+]Support PageInfo for pagination[/+]pantharshit00 commentedon Jan 17, 2020
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
marcjulian commentedon Jan 17, 2020
Cool @pantharshit00 thank you and have great weekend!