We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a38007 + 2a6dcf6 commit 1e6af3dCopy full SHA for 1e6af3d
lib/graphql/analysis/query_depth.rb
@@ -3,7 +3,7 @@ module Analysis
3
# A query reducer for measuring the depth of a given query.
4
#
5
# @example Logging the depth of a query
6
- # Schema.query_analyzers << GraphQL::Analysis::QueryDepth.new { |depth| puts "GraphQL query depth: #{depth}" }
+ # Schema.query_analyzers << GraphQL::Analysis::QueryDepth.new { |query, depth| puts "GraphQL query depth: #{depth}" }
7
# Schema.execute(query_str)
8
# # GraphQL query depth: 8
9
0 commit comments