Validation Failure

The syntax as shown in the query validates as successful but when trying to use it via the endpoint it fails.

Coincidently enough putting same syntax in variable and then using it in API succeeds without issues.


Hey @stefancvrkotic ! Thanks for the report. Can repro, looks like we send null in the object in the first instance which causes the error. Good point, that the preview doesn't show this. I'll submit a report to the team for that discrepancy.

As a different workaround, you can also replace the null in your ternary with an empty string.