This file contains hidden or 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
| import moment from 'moment'; | |
| import {GraphQLScalarType, GraphQLError, Kind} from 'graphql'; | |
| module.exports = new GraphQLScalarType({ | |
| name: 'Date', | |
| /** | |
| * Serialize date value into string | |
| * @param {moment} value date value | |
| * @return {String} date as string | |
| */ |