- 🇦🇺Australia almunnings Melbourne, 🇦🇺
Cursor is a CustomScalarType in 2.x
Thank you for the report.
- Status changed to Fixed
over 1 year ago 10:50pm 11 April 2023
When using PageInfo we get Schema error for Cursor
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
Generated types will contain an any type in place of these values. To fix this, provide an equivalent
type in your config file:
{
scalars: {
/* in your case, something like */
Cursor: { // <- The GraphQL Scalar
type: "YourType_Cursor" // <- The TypeScript type
}
}
}
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Cursor is a CustomScalarType in 2.x
Thank you for the report.