We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1c3e9 commit e1ce8c4Copy full SHA for e1ce8c4
packages/graphql/lib/plugin/utils/ast-utils.ts
@@ -144,7 +144,7 @@ export function getDecoratorName(decorator: Decorator) {
144
145
function getIdentifierFromName(expression: LeftHandSideExpression) {
146
const identifier = getNameFromExpression(expression);
147
- if (expression && expression.kind !== SyntaxKind.Identifier) {
+ if (identifier && identifier.kind !== SyntaxKind.Identifier) {
148
throw new Error();
149
}
150
return identifier;
0 commit comments