INNER CODE UNIT · TypeScript
GarphSchema
stepci/garph · src/index.ts:598
export class GarphSchema {
types: Map<string, AnyType> = new Map()
nodeType = this.interface('Node', {
id: this.id()
})
pageInfoType = this.type('PageInfo', {
hasNextPage: this.boolean(),
hasPreviousPage: this.boolean(),
startCursor: this.string().optional(),
endCursor: this.string().optional()
})
pageInfoArgs = {
first: this.int().optional(),
last: this.int().optional(),
before: this.id().optional(),