Created
July 1, 2019 05:45
-
-
Save Turbiani/109fa355e2a5842b190e9e2fb1884aef to your computer and use it in GitHub Desktop.
Scalar DateTime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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