Improve error message when missing `queryGenerationFactories` in the template.
See original GitHub issueThank you for this great generator.
While Build Template it throws this error:
Error: Cannot generate a random value for scalar 'smallint'.
The random generator is not able to randomly generate a value for non-standard GraphQL scalars.
You have to provide a custom factory by providing this in your config:
{
'smallint': () => generateRandomCustomScalar()
}
Can you please provide an example on how to fix this? Documentation is not clear enough, where the 'smallint': () => generateRandomCustomScalar()
should go in the config? Can you provide an example of generateRandomCustomScalar()
?
Issue Analytics
- State:
- Created a year ago
- Comments:13
Top Results From Across the Web
How to Make Django Raise an Error for Missing Template ...
Templates render this for missing variables, and it defaults to the empty string. The docs have more detail on how this works.
Read more >Confusing error message on missing template value #1579
I re-created your chart and installing with a blank image tag I get the Image Tag Required message. If i install with a...
Read more >How to Report Errors in Forms: 10 Design Guidelines
Error messages are an indicator of system status: they let users know that a hurdle was encountered and give solutions to fix them....
Read more >6 Form Error Message Mistakes Almost Everyone Makes
Discover the most common mistakes when it comes to creating error messages for your web forms and learn how to correct those errors...
Read more >Resolve template validation or template format errors in ... - AWS
I receive an error message when I try to create my AWS ... type for the template to use if no value is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re welcome @pelletier197, and again, thanks for this great generator. If you need anything please tag me! If you want to get exactly the same experience like mine then visit Hasura Getting Started.
great, these are some common Hasura scalars:
After adding all these scalars above it throws a new error:
ps. I’m using Hasura 2.7.0
I’ll try to debug it