mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 16:33:28 +00:00
3c077c59ad
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
28 lines
669 B
Elixir
28 lines
669 B
Elixir
defmodule Mobilizon.GraphQL.Resolvers.Search do
|
|
@moduledoc """
|
|
Handles the event-related GraphQL calls
|
|
"""
|
|
|
|
alias Mobilizon.GraphQL.API.Search
|
|
|
|
@doc """
|
|
Search persons
|
|
"""
|
|
def search_persons(_parent, %{page: page, limit: limit} = args, _resolution) do
|
|
Search.search_actors(args, page, limit, :Person)
|
|
end
|
|
|
|
@doc """
|
|
Search groups
|
|
"""
|
|
def search_groups(_parent, %{page: page, limit: limit} = args, _resolution) do
|
|
Search.search_actors(args, page, limit, :Group)
|
|
end
|
|
|
|
@doc """
|
|
Search events
|
|
"""
|
|
def search_events(_parent, %{page: page, limit: limit} = args, _resolution) do
|
|
Search.search_events(args, page, limit)
|
|
end
|
|
end
|