graphql-date
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/graphql-date package

1.0.3 • Public • Published

graphql-date Build Status js-standard-style

GraphQL Date Type

Installation

npm i --save graphql-date

Usage

var GraphQLDate = require('graphql-date')
 
// Use graphql-date in your GraphQL objects for Date properties
var fooType = new GraphQLObjectType({
  name: 'Foo',
  description: 'Some foo type',
  fields: {
    created: {
      type: GraphQLDate,
      description: 'Date foo was created'
    }
  }
});
 
var queryType = new GraphQLObjectType({
  name: 'Query',
  fields: {
    foo: {
      type: fooType,
      resolve: function () {
        // ...
      },
    }
  }
})

License

MIT

Package Sidebar

Install

npm i graphql-date

Weekly Downloads

4,319

Version

1.0.3

License

MIT

Last publish

Collaborators

  • tjmehta