Skip to content
New issue

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

add error when graphql integer variable can't be parsed #93

Merged
merged 6 commits into from
Jul 22, 2021

Conversation

renevds
Copy link
Contributor

@renevds renevds commented Jul 22, 2021

This adds an error when a graphql integer variable can not be parsed to an integer. As requested in #84

val = parseInt(val);
const intVal = parseInt(val);
if (isNaN(intVal)) {
const err = new Error(`Could not parse integer ${val}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also mention with variable the value belongs too?

@pheyvaer pheyvaer merged commit 5ac2f65 into KNowledgeOnWebScale:development Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants