Shouldn't this return null?

I wrote this query to test something quickly:

If(false, true, null)

I expected it to return null, but instead I got this error:

Error: Cannot read property 'error' of null

I’m guessing this is expected behavior, but can someone explain what’s going on?

That appears to be a Dashboard bug.

Your query returns null in fauna-shell, and from a client using the JavaScript driver.

Thanks for reporting this! I filed an issue, FE-1237. Hopefully we can get that fixed soon.

1 Like

Thanks @ewan !

It seems the problem occurs whenever the result of a query is simply null.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.