Module

x/pothos/packages/plugin-relay/index.ts>resolveOffsetConnection

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
function resolveOffsetConnection
import { resolveOffsetConnection } from "https://dotland.deno.dev/x/pothos@release-1713397530/packages/plugin-relay/index.ts";

Type Parameters

T
U extends Promise<readonly T[] | null> | readonly T[] | null

Parameters

options: ResolveOffsetConnectionOptions
resolve: (params: { offset: number; limit: number; }) => U & (MaybePromise<readonly T[] | null> | null)

Returns

Promise<RemoveMaybePromiseProps<ConnectionShape<SchemaTypes, NonNullable<T>, U extends NonNullable<U> ? (Promise<null> extends U ? true : false) : true, T extends NonNullable<T> ? false : { list: false; items: true; }, false>>>