Skip to content

Commit 7cb540c

Browse files
committed
added stat output
1 parent f8d549e commit 7cb540c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/activecube/graphql/cube_field.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def resolve_field_method(obj, ruby_kwargs, ctx)
3434
execute_query(tree, ctx)
3535
end : execute_query(tree, ctx)
3636

37+
if ctx[:stat_io].respond_to?(:puts) && response.respond_to?(:statistics)
38+
ctx[:stat_io].puts(response.statistics)
39+
end
40+
3741
ResponseBuilder.new tree, response
3842

3943
rescue ArgumentError => ex

0 commit comments

Comments
 (0)