Skip to content

Commit

Permalink
fix(visitor): visit decorators before visiting type (#160)
Browse files Browse the repository at this point in the history
* fix(visitor): visit decorators before visiting type

Signed-off-by: Jamie Shorten <[email protected]>

* chore: accept suggestion

Co-authored-by: Matt Roberts <[email protected]>
Signed-off-by: Jamie Shorten <[email protected]>

---------

Signed-off-by: Jamie Shorten <[email protected]>
Signed-off-by: Jamie Shorten <[email protected]>
Co-authored-by: Matt Roberts <[email protected]>
  • Loading branch information
jamieshorten and mttrbrts authored Dec 17, 2024
1 parent 7f83d5f commit 7a84504
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/common/basevisitor.js
Original file line number Diff line number Diff line change
@@ -194,6 +194,7 @@ class BaseVisitor {
* @protected
*/
visitScalarField(field, parameters) {
field.getDecorators().forEach(decorator => decorator.accept(this, parameters));
this.visitField(field.getScalarField(), parameters);
}

0 comments on commit 7a84504

Please sign in to comment.