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
constDEFAULT_FOO_SIZE=4;exportconstGET_FOOS_BY_SIZE=gql` query getFoos($size: Int = ${DEFAULT_FOO_SIZE}) { foos }`;
When we replace ${DEFAULT_FOO_SIZE} with the literal 4 the validation errors cease.
I believe the eslint plugin sees the $ in ${ and interprets the following characters as a variable name. I would expect ${ and interpreted as a placeholder.
If this isn't the right place to report this, apologies!
The text was updated successfully, but these errors were encountered:
When we try to use a template placeholder in a graphql-tag template we get graphql validation errors:
When we replace
${DEFAULT_FOO_SIZE}
with the literal4
the validation errors cease.I believe the eslint plugin sees the
$
in${
and interprets the following characters as a variable name. I would expect${
and interpreted as a placeholder.If this isn't the right place to report this, apologies!
The text was updated successfully, but these errors were encountered: