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