@baeta/plugin-pagination
Interfaces
PaginationOptions
Configuration options for the pagination plugin
Properties
Property | Type | Default value | Description |
---|---|---|---|
|
|
|
Map of type names to their pagination configuration. Example
|
|
|
|
Whether to create an export file |
|
|
|
Custom name for the pagination module |
|
|
|
Whether the node field should be nullable in all connections |
|
|
|
Additional fields to add to the PageInfo type Example
|
PaginationTypeOptions
Configuration options for a specific pagination type
Properties
Property | Type | Default value | Description |
---|---|---|---|
|
|
|
Additional fields to add to the connection type Example
|
|
|
|
The GraphQL type for cursors |
|
|
|
Additional fields to add to the edge type Example
|
|
|
|
The GraphQL type for nodes (e.g., "User!") |
Functions
paginationPlugin()
paginationPlugin(
options
):GeneratorPluginV1
<unknown
>
A plugin that generates Relay-style pagination types for GraphQL. See https://baeta.io/docs/plugins/pagination for more details
Parameters
Parameter | Type | Description |
---|---|---|
|
Configuration options for the pagination plugin |
Returns
GeneratorPluginV1
<unknown
>
A Baeta generator plugin