SYNG2009 - Illegal argument
Domain: query
Severity: USER
An argument has the wrong type for its position.
Selector arguments have expected types (string, number, pattern, selector, etc.). Providing a value of the wrong type will produce this error.
Example
clojure
(arg "first")If (arg) expects a number for position, a string is invalid.
Solution
Use the correct type for the argument:
clojure
(arg 1)Common argument types:
- Numbers:
1,2,-1 - Strings:
"foo" - Patterns:
/foo/ - Selectors:
(call)