lib/graphql/subscriptions/serialize.rb in graphql-1.12.7 vs lib/graphql/subscriptions/serialize.rb in graphql-1.12.8

- old
+ new

@@ -68,9 +68,12 @@ timestamp_class = Object.const_get(timestamp_class_name) timestamp_class.strptime(timestamp_s, TIMESTAMP_FORMAT) when OPEN_STRUCT_KEY ostruct_values = load_value(value[OPEN_STRUCT_KEY]) OpenStruct.new(ostruct_values) + else + key = value.keys.first + { key => load_value(value[key]) } end else loaded_h = {} sym_keys = value.fetch(SYMBOL_KEYS_KEY, []) value.each do |k, v|