Skip to content

Commit

Permalink
Simplify static validator reference
Browse files Browse the repository at this point in the history
  • Loading branch information
gmac authored Oct 1, 2024
1 parent b85bf10 commit 6e3210f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/stitching/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def fragment_definitions
# Validates the request using the combined supergraph schema.
# @return [Array<GraphQL::ExecutionError>] an array of static validation errors
def validate
result = @supergraph.static_validator.validate(@query)
result = @supergraph.schema.static_validator.validate(@query)
result[:errors]
end

Expand Down

0 comments on commit 6e3210f

Please sign in to comment.