Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some fields that were missing to the media GQL schema #919

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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