aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/graphql/generics.ts
blob: dec5f10f7164ddd98fcd6e72a7cf1cf24a157215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export type GraphQLPageInfo = {
  endCursor: string;
  hasNextPage: boolean;
  total: number;
};

export type GraphQLEdges<T> = {
  cursor: string;
  node: T;
};

export type GraphQLEdgesInput = {
  after?: string;
  before?: string;
  first?: number;
  last?: number;
};

export type GraphQLNode<T> = {
  node: T;
};

export type GraphQLNodes<T> = {
  nodes: T[];
};