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

Handles the event-related GraphQL calls.

Summary

Functions

Link to this function

create_event(parent, args, resolution)

View Source
@spec create_event(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Events.Event.t()} | {:error, String.t() | Ecto.Changeset.t()}

Create an event

Link to this function

delete_event(parent, arg2, arg3)

View Source
@spec delete_event(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Events.Event.t()} | {:error, String.t() | Ecto.Changeset.t()}

Delete an event

Link to this function

find_event(parent, args, resolution)

View Source
@spec find_event(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Events.Event.t()} | {:error, :event_not_found}
Link to this function

list_events(parent, map, resolution)

View Source
@spec list_events(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Page.t(Mobilizon.Events.Event.t())}
  | {:error, :events_max_limit_reached}
Link to this function

list_participants_for_event(event, arg2, resolution)

View Source
@spec list_participants_for_event(
  Mobilizon.Events.Event.t(),
  map(),
  Absinthe.Resolution.t()
) ::
  {:ok, Page.t(Participant.t())} | {:error, String.t()}

List participants for event (through an event request)

Link to this function

organizer_for_event(event, args, resolution)

View Source
@spec organizer_for_event(Mobilizon.Events.Event.t(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Actor.t() | nil} | {:error, String.t()}
Link to this function

stats_participants(event, args, resolution)

View Source
@spec stats_participants(Mobilizon.Events.Event.t(), map(), Absinthe.Resolution.t()) ::
  {:ok, map()}
Link to this function

update_event(parent, args, resolution)

View Source
@spec update_event(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Events.Event.t()} | {:error, String.t() | Ecto.Changeset.t()}

Update an event