UNPKG

graphql-connections

Version:

Build and handle Relay-like GraphQL connections using a Knex query builder

30 lines (29 loc) 1.24 kB
import { GraphQLScalarType } from 'graphql'; declare const typeDefs = "\n scalar Filter\n scalar Search\n scalar OrderBy\n scalar OrderDir\n scalar First\n scalar Last\n scalar Before\n scalar After\n\n interface IConnection {\n pageInfo: PageInfo!\n }\n\n interface IEdge {\n cursor: String!\n }\n\n type PageInfo {\n hasPreviousPage: Boolean!\n hasNextPage: Boolean!\n startCursor: String!\n endCursor: String!\n }\n"; declare const resolvers: { Filter: GraphQLScalarType; Search: GraphQLScalarType; OrderBy: GraphQLScalarType; OrderDir: GraphQLScalarType; First: GraphQLScalarType; Last: GraphQLScalarType; Before: GraphQLScalarType; After: GraphQLScalarType; IConnection: { __resolveType(): null; }; IEdge: { __resolveType(): null; }; }; declare const gqlTypes: { filter: GraphQLScalarType; search: GraphQLScalarType; orderBy: GraphQLScalarType; orderDir: GraphQLScalarType; first: GraphQLScalarType; last: GraphQLScalarType; before: GraphQLScalarType; after: GraphQLScalarType; }; export { typeDefs, resolvers, gqlTypes };