Skip to content

Instantly share code, notes, and snippets.

@Turbiani
Created July 1, 2019 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Turbiani/109fa355e2a5842b190e9e2fb1884aef to your computer and use it in GitHub Desktop.
Save Turbiani/109fa355e2a5842b190e9e2fb1884aef to your computer and use it in GitHub Desktop.
Scalar DateTime
const { GraphQLDateTime } = require('graphql-iso-date');
const { gql } = require('apollo-server-express');
const typeDefs = gql`
scalar DateTime
`;
const resolvers = {
DateTime: GraphQLDateTime,
};
module.exports = {
typeDefs,
resolvers,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment