Skip to content

Curious why is_not_null doesn't work in this query? #277

Answered by obi1kenobi
u9g asked this question in Q&A
Discussion options

You must be logged in to vote

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 :)

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@obi1kenobi
Comment options

@u9g
Comment options

@obi1kenobi
Comment options

@u9g
Comment options

@obi1kenobi
Comment options

Answer selected by obi1kenobi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants