View Source Mobilizon.GraphQL.API.Events (Mobilizon v5.0.0-beta.1)

API for Events.

Summary

Functions

@spec create_event(map()) ::
  {:ok, Mobilizon.Federation.ActivityPub.Activity.t(),
   Mobilizon.Events.Event.t()}
  | {:error, atom() | Ecto.Changeset.t()}

Create an event

Link to this function

delete_event(event, actor)

View Source

Trigger the deletion of an event

Link to this function

send_private_message_to_participants(args)

View Source
@spec send_private_message_to_participants(map()) ::
  {:ok, Mobilizon.Federation.ActivityPub.Activity.t(),
   Mobilizon.Discussions.Comment.t()}
  | {:error, atom() | Ecto.Changeset.t()}
Link to this function

update_event(args, event)

View Source

Update an event