From 7a84504e255e00b18a83e39bc786a5e2a4b28f03 Mon Sep 17 00:00:00 2001 From: Jamie Shorten Date: Tue, 17 Dec 2024 16:43:54 +0000 Subject: [PATCH] fix(visitor): visit decorators before visiting type (#160) * fix(visitor): visit decorators before visiting type Signed-off-by: Jamie Shorten * chore: accept suggestion Co-authored-by: Matt Roberts <7544022+mttrbrts@users.noreply.github.com> Signed-off-by: Jamie Shorten --------- Signed-off-by: Jamie Shorten Signed-off-by: Jamie Shorten Co-authored-by: Matt Roberts <7544022+mttrbrts@users.noreply.github.com> --- lib/common/basevisitor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/common/basevisitor.js b/lib/common/basevisitor.js index f733cd1..a2056c1 100644 --- a/lib/common/basevisitor.js +++ b/lib/common/basevisitor.js @@ -194,6 +194,7 @@ class BaseVisitor { * @protected */ visitScalarField(field, parameters) { + field.getDecorators().forEach(decorator => decorator.accept(this, parameters)); this.visitField(field.getScalarField(), parameters); }