@parameter1/graphql-type-date

1.0.23 • Public • Published

GraphQL Date Type

A custom Date GraphQL scalar type.

Installation

yarn add @parameter1/graphql-type-date

Usage

Add the custom scalar to your resolvers.

// resolvers.js
const GraphQLDate = require('@parameter1/graphql-type-date');

module.exports = {
  Date: GraphQLDate,

  // your resovlers here...
};

And to your GraphQL type definitions.

scalar Date

Readme

Keywords

none

Package Sidebar

Install

npm i @parameter1/graphql-type-date

Weekly Downloads

2

Version

1.0.23

License

MIT

Unpacked Size

3.88 kB

Total Files

5

Last publish

Collaborators

  • b77mills
  • brandonbk
  • zarathustra323
  • solocommand