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

API for search.

Summary

Functions

@spec interact(String.t()) :: {:ok, struct()} | {:error, :not_found}
Link to this function

search_actors(args, page \\ 1, limit \\ 10, result_type)

View Source
@spec search_actors(map(), integer() | nil, integer() | nil, atom()) ::
  {:ok, Mobilizon.Storage.Page.t(Mobilizon.Actors.Actor.t())}
  | {:error, String.t()}

Searches actors.

Link to this function

search_events(args, page \\ 1, limit \\ 10)

View Source
@spec search_events(map(), integer() | nil, integer() | nil) ::
  {:ok, Mobilizon.Storage.Page.t(Mobilizon.Events.Event.t())}

Search events