Skip to content

Commit

Permalink
fix(visitor): visit decorators before visiting type
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie Shorten <[email protected]>
  • Loading branch information
jamieshorten committed Dec 17, 2024
1 parent 7f83d5f commit 97c7911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/common/basevisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class BaseVisitor {
* @protected
*/
visitScalarField(field, parameters) {
field.getDecorators().forEach(decorator => decorator.accept(this, parameters));
this.visitField(field.getScalarField(), parameters);
}

Expand All @@ -204,6 +205,7 @@ class BaseVisitor {
* @protected
*/
visitRelationship(relationship, parameters) {
relationship.getDecorators().forEach(decorator => decorator.accept(this, parameters));
this.visitField(relationship, parameters);
}

Expand Down

0 comments on commit 97c7911

Please sign in to comment.