Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Error in valid array comparison expression #20

Open
romshark opened this issue Feb 2, 2023 · 0 comments
Open

BUG: Error in valid array comparison expression #20

romshark opened this issue Feb 2, 2023 · 0 comments
Labels
bug Something isn't working as it should.

Comments

@romshark
Copy link
Member

romshark commented Feb 2, 2023

The following template produces erroneous errors in both schema-aware and schemaless modes:

# Schema
type Query { f(x:Boolean!):Int! }
# Template
query { f( x: [[1]] == [[]] )}
1:15: mismatching types [[Int]] and [array]

https://go.dev/play/p/lSg9j4wmQ6b

Expectation

The boolean expression [[1]] == [[]] is valid and should not produce errors.

@romshark romshark added the bug Something isn't working as it should. label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as it should.
Projects
None yet
Development

No branches or pull requests

1 participant