Skip to content

Function: createEdgeType()

ts
function createEdgeType<T>(NodeType): AnyConstructor;

Defined in: packages/apollo/src/pagination.ts:72

Creates a Relay-style Edge type for a given node class. Fields: node, cursor.

Type Parameters

Type Parameter
T

Parameters

ParameterType
NodeTypeConstructor<T>

Returns

AnyConstructor

Released under the MIT License.