graphql-mocks
Version:
Tools for setting up graphql test resolvers
17 lines (16 loc) • 362 B
TypeScript
export type Edge<T> = {
node: T;
cursor: string;
};
export type CursorForNode<T> = (node: T) => string;
export type RelayPaginationResult<T = unknown> = {
edges: {
node: T;
}[];
pageInfo: {
hasNextPage: boolean;
hasPreviousPage: boolean;
startCursor: string | null;
endCursor: string | null;
};
};