Arg parsing error (Cannot read property 'indexOf' of undefined)
See original GitHub issueDescribe the bug Null arg values are not supported (Cannot read property ‘indexOf’ of undefined)
To Reproduce
return gotQl.mutation('https://example.com', {
operation: {
name: 'update_users',
args: {
where: {id: {_eq: userId}},
_set: {name: null},
},
fields: ['affected_rows'],
},
})
Current behavior
Runner error: Error when executing query: Parse error: Failed to parse operation "update_users" => Cannot read property 'indexOf' of undefined
Expected behavior
null
values should be supported.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
parse.com get Cannot read property 'indexOf' of undefined
just try to check the null or empty value or UNDEFINED... · The probelem is when doing the check, the error is triggered,...
Read more >How to Prevent the TypeError: Cannot Read Property Map of ...
A guide on the root cause of 'cannot read map of undefined' as well as techniques and tools to prevent this error.
Read more >Cannot read properties of undefined (reading 'length') - TrackJS
This error can be thrown for a lot of reasons, as it is incredibly common to reference the length property of string or...
Read more >Resolving the JavaScript Promise Error "TypeError: Cannot ...
TypeError - Cannot read property 'then' of undefined is thrown when the caller is expecting a Promise to be returned and instead receives ......
Read more >SyntaxError: missing ) after argument list - JavaScript | MDN
There is an error with how a function is called. This might be a typo, a missing operator, or an unescaped string, for...
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
I’ll try to fix it today, I need to find the cause for now but I think this is a pretty simple issue
thanks, it works 👍