Skip to main content

PaginationOptions

Configuration options for the pagination plugin

Properties

PropertyTypeDefault valueDescription

types

Record<string, boolean | PaginationTypeOptions>

undefined

Map of type names to their pagination configuration.

Example

{
// Simple configuration
User: true,

// Advanced configuration
UserCustom: {
nodeType: "User",
cursorType: "UUID!",
connectionFields: ["totalCount: Int!"],
edgeFields: ["hasPhotos: Boolean!"]
}
}

createExport?

boolean

undefined

Whether to create an export file

moduleName?

string

"baeta-pagination";

Custom name for the pagination module

nullableNode?

boolean

true;

Whether the node field should be nullable in all connections

pageInfoFields?

string[]

undefined

Additional fields to add to the PageInfo type

Example

["hasMorePages: Boolean!"];