Add filesize to file entity, expose it to GraphQL API

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-06-03 17:13:47 +02:00
parent 4434459e59
commit 87bc5f8352
8 changed files with 66 additions and 18 deletions

View File

@@ -11,6 +11,8 @@ defmodule MobilizonWeb.Schema.PictureType do
field(:alt, :string, description: "The picture's alternative text")
field(:name, :string, description: "The picture's name")
field(:url, :string, description: "The picture's full URL")
field(:content_type, :string, description: "The picture's detected content type")
field(:size, :integer, description: "The picture's size")
end
@desc "An attached picture or a link to a picture"