Skip to content

Commit

Permalink
Expose projectMedia.fact_check_published_on field (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
amoedoamorim authored Jun 12, 2024
1 parent 6826b16 commit 8188030
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/graph/types/project_media_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ProjectMediaType < DefaultObject
field :description, GraphQL::Types::String, null: true
field :picture, GraphQL::Types::String, null: true
field :virality, GraphQL::Types::Int, null: true
field :fact_check_published_on, GraphQL::Types::Int, null: true
field :requests_count, GraphQL::Types::Int, null: true
field :demand, GraphQL::Types::Int, null: true
field :linked_items_count, GraphQL::Types::Int, null: true
Expand Down
3 changes: 2 additions & 1 deletion lib/relay.idl
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ type ApiKey implements Node {
expire_at: String
id: ID!
permissions: String
team: PublicTeam
team: Team
team_id: Int
title: String
updated_at: String
Expand Down Expand Up @@ -11364,6 +11364,7 @@ type ProjectMedia implements Node {
"""
last: Int
): DynamicConnection
fact_check_published_on: Int
feed_columns_values: JsonStringType
field_value(annotation_type_field_name: String!): String
flags(
Expand Down
16 changes: 15 additions & 1 deletion public/relay.json
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,7 @@
],
"type": {
"kind": "OBJECT",
"name": "PublicTeam",
"name": "Team",
"ofType": null
},
"isDeprecated": false,
Expand Down Expand Up @@ -59720,6 +59720,20 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "fact_check_published_on",
"description": null,
"args": [

],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "feed_columns_values",
"description": null,
Expand Down

0 comments on commit 8188030

Please sign in to comment.