Curious why is_not_null doesn't work in this query? #277
-
Was messing around on the query playground, but this query seems to fail:
with error:
I also found this query that uses Anyways, I'm having a blast messing around with queries, thanks for releasing such a cool tool, would love to hear back. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
I'm sorry, that's a terrible error message. It's supposed to show the underlying error text as well — fixing in #278. In the playground query you posted, that Filtering for non-null doesn't really make sense on properties that are already guaranteed to be non-null by the schema, hence the error. Thanks for flagging the bad example query as well. If you'd like to make a PR to fix it, I'd happily merge it and you'll get a shout-out in the next release notes for the contribution :) |
Beta Was this translation helpful? Give feedback.
I'm sorry, that's a terrible error message. It's supposed to show the underlying error text as well — fixing in #278.
In the playground query you posted, that
url
property is defined as non-nullable in the schema — note the!
in its type:Filtering for non-null doesn't really make sense on properties that are already guaranteed to be non-null by the schema, hence the error.
Thanks for flagging the bad example query as well. If you'd like to make a PR to fix it, I'd happily merge it and you'll get a shout-out in the next release notes for the contribution :)