-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new field to TeamType to allow bot queries
Add a bot_query field to TeamType which will send queries to the backend simulating tipline bot queries. Initially, this is returning the most recent Explainers/FactChecks as TiplineSearchResults, but eventually it will be hooked to the actual bot implementation.
- Loading branch information
Showing
3 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class TiplineSearchResultType < DefaultObject | ||
description "Represents a search result for the tipline" | ||
|
||
field :title, GraphQL::Types::String, null: false | ||
field :body, GraphQL::Types::String, null: true | ||
field :image_url, GraphQL::Types::String, null: true | ||
field :language, GraphQL::Types::String, null: true | ||
field :url, GraphQL::Types::String, null: true | ||
field :type, GraphQL::Types::String, null: false | ||
field :format, GraphQL::Types::String, null: false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters