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
I started playing around with caliban and tried to use a variable in my subscription query like this one.
subscriptionOnEvent($topic: String!) {
onEvent(topic: $topic) {
name
}
}
But caliban fails to execute query because it can not resolve the variable "$topic". I checked the WebSocket message and it contains variable definitions as expected.
Hi! This is definitely not intentional, good catch 😄 Would you like to submit a PR to fix it? I’m guessing the problem might exist on all adapters that support WebSockets (that’d be http4s, Akka and uzhttp).
Hi. Thank you for the great library!
I started playing around with caliban and tried to use a variable in my subscription query like this one.
But caliban fails to execute query because it can not resolve the variable "$topic". I checked the WebSocket message and it contains variable definitions as expected.
The code for Http4sAdapter ignores the variables in payload is this intentional?
caliban/adapters/http4s/src/main/scala/caliban/Http4sAdapter.scala
Line 178 in dac5817
When I change the line to something like this it can execute a query
The text was updated successfully, but these errors were encountered: