Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/plugin-relay/utils/index.ts>resolveArrayConnection

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

Parameters

options: ResolveArrayConnectionOptions
array: readonly T[]

Returns

RemoveMaybePromiseProps<ConnectionShape<SchemaTypes, NonNullable<T>, false, T extends NonNullable<T> ? false : { list: false; items: true; }, false>>