We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3994bce commit 1902327Copy full SHA for 1902327
1 file changed
lib/graphql/schema/field/default_resolver_tracker.rb
@@ -5,17 +5,22 @@ class Schema
5
class Field
6
class DefaultResolverTracker
7
attr_reader :counts_by_field
8
+ attr_reader :strategy_by_field
9
10
def initialize
11
@counts_by_field = Hash.new do |h, k|
12
h[k] = Hash.new do |h2, k2|
13
h2[k2] = 0
14
end
15
16
+ @strategy_by_field = Hash.new do |h, k|
17
+ h[k] = Set.new
18
+ end
19
20
21
def track(field, strategy)
22
@counts_by_field[field.path][strategy] += 1
23
+ @strategy_by_field[strategy] << field.path
24
25
26
0 commit comments