diff --git a/packages/graphql/lib/plugin/utils/ast-utils.ts b/packages/graphql/lib/plugin/utils/ast-utils.ts index 394f8397a..873ab62c1 100644 --- a/packages/graphql/lib/plugin/utils/ast-utils.ts +++ b/packages/graphql/lib/plugin/utils/ast-utils.ts @@ -191,7 +191,7 @@ function getNameFromExpression(expression: LeftHandSideExpression) { export function getJSDocDescription(node: Node): string { const jsDoc: JSDoc[] = (node as any).jsDoc; - if (!jsDoc) { + if (!jsDoc || !jsDoc[0]) { return undefined; }