diff --git a/app/graphql/types/search_event_type.rb b/app/graphql/types/search_event_type.rb index 345dd3f..c883a5e 100644 --- a/app/graphql/types/search_event_type.rb +++ b/app/graphql/types/search_event_type.rb @@ -7,5 +7,9 @@ class SearchEventType < Types::BaseObject field :source, String field :created_at, GraphQL::Types::ISO8601DateTime, null: false field :updated_at, GraphQL::Types::ISO8601DateTime, null: false + field :phrase, String + def phrase + @object.term.phrase + end end end