nestjs-graphql-relay
Version:
@nestjs/graphql + graphql-relay + typeorm
15 lines (13 loc) • 455 B
text/typescript
import { Field, ObjectType } from "@nestjs/graphql";
import type { PageInfo as IPageInfo } from "graphql-relay";
()
export class PageInfo implements IPageInfo {
(() => String, { nullable: true })
readonly startCursor: string | null;
(() => String, { nullable: true })
readonly endCursor: string | null;
(() => Boolean)
readonly hasPreviousPage: boolean;
(() => Boolean)
readonly hasNextPage: boolean;
}