Skip to content

string interpolation results in query type never #421

Answered by JoviDeCroock
zxt-tzx asked this question in Q&A
Discussion options

You must be logged in to vote

You can't interpolate values, you should use document variables. Making the template literal dynamic won't work with TypeScript. https://graphql.org/learn/queries/#variables

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@kitten
Comment options

@zxt-tzx
Comment options

@JoviDeCroock
Comment options

@zxt-tzx
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #420 on November 23, 2024 12:40.