We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eg I have a type E with following statements
const GraphqlISODate = require('graphql-iso-date'); const {GraphQLDate} = GraphqlISODate; module.exports = gql` type E { ... purchaseDate: GraphQLDate } `
But I got error with GraphQLDate not found, how can I resolved it?
The text was updated successfully, but these errors were encountered:
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, ... }
Sorry, something went wrong.
No branches or pull requests
eg I have a type E with following statements
But I got error with GraphQLDate not found, how can I resolved it?
The text was updated successfully, but these errors were encountered: