graphql-moment
GraphQL Moment Date Type
Installation
npm i --save graphql-moment
Usage
var Factory GraphQLDate = // Use graphql-moment in your GraphQL objects for Date propertiesvar fooType = name: 'Foo' description: 'Some foo type' fields: created: type: GraphQLDate // defaults to standard ISO 8601 date format description: 'Date foo was created' ; var fooType = name: 'Foo' description: 'Some foo type' fields: created: type: GraphQLDate // defaults to standard ISO 8601 date format description: 'Date foo was created' ;
Built-in date formats
GraphQLDate // Standard ISO 8601GraphQLUnixTime // Milliseconds since 1970-01-01 UTCGraphQLMMDDYYYY // MM-DD-YYYY formatGraphQLYYYYMMDD // YYYY-MM-DD format
Custom date formats
GraphQLTime = GraphQLEmit =
License
MIT