class ElasticGraph::GraphQL::Aggregation::Resolvers::GroupedBy
def can_resolve?(field:, object:)
def can_resolve?(field:, object:) true end
def resolve(field:, object:, args:, context:, lookahead:)
def resolve(field:, object:, args:, context:, lookahead:) new_field_path = field_path + [PathSegment.for(field: field, lookahead: lookahead)] return with(field_path: new_field_path) if field.type.object? bucket_entry = Support::HashUtil.verbose_fetch(bucket, "key") Support::HashUtil.verbose_fetch(bucket_entry, FieldPathEncoder.encode(new_field_path.map(&:name_in_graphql_query))) end