Questions tagged [template-strings]

I recommend utilizing template-literals tag instead of template-strings, which was the former name used in earlier ECMAScript specifications.

The specified "ID" type variable "$userId" is being utilized in a positional context that is anticipating a "non-null ID" type

When attempting to execute a GraphQL request using the npm package graphql-request, I am exploring the use of template literals. async getCandidate(userId: number) { const query = gql` query($userId: ID){ candidate( ...