View Source Mobilizon.GraphQL.Resolvers.Media (Mobilizon v4.1.0-alpha.1)

Handles the media-related GraphQL calls

Summary

Functions

Return the total media size for an actor

Get media for an event

Remove a media that the user owns

Return the total media size for a local user

Functions

Link to this function

actor_size(arg1, args, arg3)

View Source
@spec actor_size(map(), map(), map()) ::
  {:ok, integer()} | {:error, :unauthorized} | {:error, :unauthenticated}

Return the total media size for an actor

Link to this function

media(parent, arg2, resolution)

View Source

Get media for an event

See Mobilizon.Web.Resolvers.Event.create_event/3

Link to this function

medias(map, args, resolution)

View Source
Link to this function

remove_media(parent, arg2, arg3)

View Source
@spec remove_media(map(), map(), map()) ::
  {:ok, Mobilizon.Medias.Media.t()}
  | {:error, :unauthorized}
  | {:error, :unauthenticated}
  | {:error, :not_found}

Remove a media that the user owns

Link to this function

upload_media(parent, args, arg3)

View Source
@spec upload_media(map(), map(), map()) ::
  {:ok, Mobilizon.Medias.Media.t()} | {:error, any()}
Link to this function

user_size(arg1, args, arg3)

View Source
@spec user_size(map(), map(), map()) ::
  {:ok, integer()} | {:error, :unauthorized} | {:error, :unauthenticated}

Return the total media size for a local user