Skip to content

Commit

Permalink
fix(visitor-plugin-common): incorrect gqlImport alias
Browse files Browse the repository at this point in the history
Do not use propName, as the import is aliased with `gql`.

Fixes #5460
  • Loading branch information
HelloWorld017 committed Sep 5, 2023
1 parent 9df3644 commit c8ba260
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ export class ClientSideBaseVisitor<
return `new TypedDocumentString(\`${doc}\`)`;
}

const gqlImport = this._parseImport(this.config.gqlImport || 'graphql-tag');

return (gqlImport.propName || 'gql') + '`' + doc + '`';
return 'gql`' + doc + '`';
}

protected _getGraphQLCodegenMetadata(
Expand Down

0 comments on commit c8ba260

Please sign in to comment.