Custom GraphQL Types
npm install @limit0/graphql-custom-typesyarn add @limit0/graphql-custom-typesjs
const { DateType, CursorType } = require('@limit0/graphql-custom-types');const resolvers = {
Date: DateType,
Cursor: CursorType,
};
`Also, don't forget to add them to your GraphQL definitions:
`graphql
scalar Date
scalar Cursor
``