Skip to content

Commit 1e6af3d

Browse files
author
Robert Mosolgo
authored
Merge pull request #199 from gjtorikian/patch-1
Update comment documentation
2 parents 0a38007 + 2a6dcf6 commit 1e6af3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/analysis/query_depth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Analysis
33
# A query reducer for measuring the depth of a given query.
44
#
55
# @example Logging the depth of a query
6-
# Schema.query_analyzers << GraphQL::Analysis::QueryDepth.new { |depth| puts "GraphQL query depth: #{depth}" }
6+
# Schema.query_analyzers << GraphQL::Analysis::QueryDepth.new { |query, depth| puts "GraphQL query depth: #{depth}" }
77
# Schema.execute(query_str)
88
# # GraphQL query depth: 8
99
#

0 commit comments

Comments
 (0)