You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Absinthe version (mix deps | grep absinthe): 1.4.12
Testing Framework: ExUnit
Expected behavior
I expected to see an error complaining about the incorrect type being supplied.
Actual behavior
The following piece of code is running without problems:
@query"""query ($filter: Boolean) { users(filter: $filter) { email }}"""@variables%{filter: %{email: "admin"}}test"users field returns a list of users filtered by email, using a variable"doconn=post(build_conn(),"/api",query: @query,variables: @variables)assertjson_response(conn,200)==%{"data"=>%{"users"=>[%{"email"=>"admin@email.com"}]}}end
Note that:
query($filter: Boolean){
Should be:
query($filter: UserFilter){
It seems to be working with whatever type you pass to it, as long as the type exists.
If the type doesn't exist it complains accordingly.
Environment
Expected behavior
I expected to see an error complaining about the incorrect type being supplied.
Actual behavior
The following piece of code is running without problems:
Note that:
Should be:
It seems to be working with whatever type you pass to it, as long as the type exists.
If the type doesn't exist it complains accordingly.
Relevant Schema/Middleware Code
The text was updated successfully, but these errors were encountered: