gql string with embedded expression #579
-
When linting a template literal with an embedded expression, graphql-eslint suffers a parse failure because the field is empty at the point of parsing:
Is this something I can address via config or a feature request? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Related ardatan/graphql-tools#1732 @dotansimha @B2o5T Maybe we should ignore this kind of codes automatically. There is no way to parse these. @earnubs You can add ignore annotations to that code for now because we will never be able to parse it correctly. |
Beta Was this translation helpful? Give feedback.
-
Hi @earnubs, currently it’s not possible because for extracting documents from code under the hood we use graphql-tag-pluck that don't support string interpolation for this moment. |
Beta Was this translation helpful? Give feedback.
Hi @earnubs, currently it’s not possible because for extracting documents from code under the hood we use graphql-tag-pluck that don't support string interpolation for this moment.