Skip to main content

Interface: Cursor

The serialized Cursor

Description

The Cursor is what GraphQL Relay compatible servers use to be able to paginate connections.

This Cursor type could be extended with whatever types you want.

Example

Extending the cursor

declare module 'typegraphql-relay-connections' {
export interface Cursor {
id: string;
sortByProperty: string;
}
}

Indexable​

â–ª [K: string]: unknown