Skip to content

Commit

Permalink
Adds phrase to SearchEventType
Browse files Browse the repository at this point in the history
  • Loading branch information
JPrevost committed Nov 8, 2023
1 parent 0b587a2 commit 8151162
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/graphql/types/search_event_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8151162

Please sign in to comment.