Method: GraphQL::Analysis::QueryDepth#initialize
- Defined in:
- lib/graphql/analysis/query_depth.rb
#initialize(query) ⇒ QueryDepth
Returns a new instance of QueryDepth.
27 28 29 30 31 32 |
# File 'lib/graphql/analysis/query_depth.rb', line 27 def initialize(query) @max_depth = 0 @current_depth = 0 @count_introspection_fields = query.schema.count_introspection_fields super end |