Skip to content

Commit

Permalink
Add some fields that were missing to the media GQL schema
Browse files Browse the repository at this point in the history
  • Loading branch information
doughsay committed Oct 13, 2024
1 parent 8046016 commit af80878
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/ambry_schema/media.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ defmodule AmbrySchema.Media do
field :end_time, :float
end

object :supplemental_file do
field :filename, non_null(:string)
field :label, :string
field :mime, non_null(:string)
field :path, non_null(:string)
end

node object(:media) do
field :status, non_null(:media_processing_status)

Expand All @@ -43,10 +50,15 @@ defmodule AmbrySchema.Media do

field :published, :date
field :published_format, non_null(:date_format)
field :publisher, :string

field :notes, :string

field :description, :string
field :thumbnails, :thumbnails

field :supplemental_files, non_null(list_of(non_null(:supplemental_file)))

field :inserted_at, non_null(:datetime)
field :updated_at, non_null(:datetime)

Expand Down

0 comments on commit af80878

Please sign in to comment.