diff --git a/app/graphql/types/event_data_edge.rb b/app/graphql/types/event_data_edge.rb index 313b05e0a..c7a340b66 100644 --- a/app/graphql/types/event_data_edge.rb +++ b/app/graphql/types/event_data_edge.rb @@ -10,7 +10,7 @@ class EventDataEdge < GraphQL::Relay::Edge def event_data @event_data ||= begin - Event.query(nil, subj_id: self.node[:id], obj_id: self.parent[:id])[:data].first + Event.query(nil, subj_id: self.node[:id], obj_id: self.parent[:id])[:data].first.to_h end end