---
url: /unthrown/api/pothos/relay.md
---
[**@unthrown/pothos**](index.md)

***

[@unthrown/pothos](index.md) / relay

# relay

## Type Aliases

### ResultConnectionOptions

```ts
type ResultConnectionOptions<Types, ParentShape, Type, Nullable, EdgeNullability, NodeNullability, Args, Kind, Failure, ConnectionResult> = Omit<FieldOptions<Types, ParentShape, Type, Nullable, Args, Kind>, "args" | "type" | "errors" | InferredFieldOptionKeys> & object;
```

Defined in: [relay.ts:69](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L69)

`t.connection`'s options with a `Result`-answering `resolve` (its `Ok` is the
connection) and the `refusals` its failure maps to.

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `args?` | `Args` | [relay.ts:86](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L86) |
| `edgesNullable?` | `EdgeNullability` | [relay.ts:87](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L87) |
| `errors?` | `Omit`<`ErrorFieldOptions`<`Types`, `ObjectRef`<`Types`, `ConnectionResult`>, `ConnectionResult`, `Nullable`>, `"types"`> | [relay.ts:90](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L90) |
| `nodeNullable?` | `NodeNullability` | [relay.ts:88](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L88) |
| `refusals` | `NoInfer`<[`Refusals`](index-1.md#refusals)<`Failure`>> | [relay.ts:94](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L94) |
| `resolve()` | (`parent`, `args`, `context`, `info`) => | `Result`<`ConnectionValue`<`ConnectionResult`, `Nullable`>, `Failure` & [`Caseable`](index-1.md#caseable)> | `AsyncResult`<`ConnectionValue`<`ConnectionResult`, `Nullable`>, `Failure` & [`Caseable`](index-1.md#caseable)> | [relay.ts:95](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L95) |
| `type` | `Type` | [relay.ts:85](https://github.com/btravstack/unthrown/blob/653a65764fd8d9eb399f952fe479dddd365bc3da/packages/pothos/src/relay.ts#L85) |

#### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `Types` *extends* `SchemaTypes` | - |
| `ParentShape` | - |
| `Type` *extends* `OutputType`<`Types`> | - |
| `Nullable` *extends* `boolean` | - |
| `EdgeNullability` *extends* `FieldNullability`<\[`unknown`]> | - |
| `NodeNullability` *extends* `boolean` | - |
| `Args` *extends* `InputFieldMap` | - |
| `Kind` *extends* `FieldKind` | - |
| `Failure` | - |
| `ConnectionResult` *extends* `ConnectionOf`<`Types`, `Type`, `EdgeNullability`, `NodeNullability`> | `ConnectionOf`<`Types`, `Type`, `EdgeNullability`, `NodeNullability`> |
