1.0.2 • Published 2 years ago

@limit0/graphql-custom-types v1.0.2

Weekly downloads
198
License
MIT
Repository
github
Last release
2 years ago

GraphQL Custom Data Types

Custom GraphQL Types, such as Date and Cursor

Install

yarn add @limit0/graphql-custom-types

Usage

Within your root resolver file, require the types and add them to the tree, similar to the following:

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:

scalar Date
scalar Cursor
1.0.2

2 years ago

1.0.1

6 years ago

1.0.0

6 years ago