question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arg parsing error (Cannot read property 'indexOf' of undefined)

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
khaosdoctorcommented, Apr 30, 2020

I’ll try to fix it today, I need to find the cause for now but I think this is a pretty simple issue

0reactions
franciscolourencocommented, May 1, 2020

thanks, it works 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found