-
Notifications
You must be signed in to change notification settings - Fork 260
Open
Description
Prerequisites
- I have checked the existing issues to ensure this is not a duplicate.
- I am running the latest version of Tailcall.
Describe the bug
Variables in nested GraphQL fields are not resolved or included in the query.
Steps to reproduce
I used this query:
query QueryUser($id: ID) {
queryUser {
address
age
locationId
name
post(id: $id) {
description
id
}
}
}
variables:
{
"id": "id1"
}
Expected behavior
The $id variable should be resolved to "id1", and the query sent as:
{ "query": "query { user { address age locationId name post(id: \"id1\") { description id } } }" }
Actual behavior
The query is sent with the unresolved variable:
{ "query": "query { user { address age locationId name post(id: $id) { description id } } }" }
Metadata
Metadata
Assignees
Labels
No labels