Open dotku opened 4 years ago
This URL should help: https://www.apollographql.com/docs/graphql-tools/scalars/
Essentially, define a scalar in your schema as a type GraphQLDate in GQL and add the definition to your resolvers object.
module.exports = gql `
scalar GraphQLDate
type E {
...
purchaseDate: GraphQLDate
}
Then where you define your resolvers import GraphQLDate as a key
resolvers = {
GraphQLDate,
...
}
eg I have a type E with following statements
But I got error with GraphQLDate not found, how can I resolved it?