Skip to content

Commit 1a1fcbc

Browse files
authored
fix: patched documentation code to change description in ast also (#201)
1 parent 56f767c commit 1a1fcbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ function constraintDirectiveDocumentation (options) {
142142
if (key === 'uniqueTypeName') return
143143
fieldConfig.description += `* ${DESCRIPTINS_MAP[key] ? DESCRIPTINS_MAP[key] : key}: \`${value}\`\n`
144144
})
145+
146+
if (fieldConfig.astNode?.description) { fieldConfig.astNode.description.value = fieldConfig.description }
145147
}
146148

147149
return (schema) =>

0 commit comments

Comments
 (0)