GraphQL Date Timezoneless Type
npm i --save occitech/graphql-date-timezoneless
var GraphQLDateTimezoneless = require("graphql-date-timezoneless");
// Use graphql-date in your GraphQL objects for Date properties
var fooType = new GraphQLObjectType({
name: "Foo",
description: "Some foo type",
fields: {
created: {
type: GraphQLDateTimezoneless,
description: "Date foo was created"
}
}
});
var queryType = new GraphQLObjectType({
name: "Query",
fields: {
foo: {
type: fooType,
resolve: function() {
// ...
}
}
}
});
MIT