-
It looks like router does not send unused subscription variables to subgraphs. Is there any documentation on this? Or could someone help me understand the need for this behavior? As can be seen in the logs below the client sends an extra unused variable However, the router does not send it to the subgraph (see last line of the subgraph log). Client Log:
Subgraph Log:
Schema: schema {
query: Query
subscription: Subscriptions
}
type Query {
dummy: String
}
type Subscriptions {
testWithVars(test: String): String
} |
Beta Was this translation helpful? Give feedback.
Answered by
StarpTech
May 29, 2024
Replies: 1 comment 4 replies
-
HI @vadimofd, why do you want to send unused variables to the subgraph? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our engine normalize the query and removes unused variables. I recommend to define a proper contract in your schema or use headers to pass authentication information. The router can forward those headers to the subgraph.