2020-01-26 20:34:25 +01:00
|
|
|
defmodule Mobilizon.GraphQL.Resolvers.Member do
|
2019-04-03 17:29:03 +02:00
|
|
|
@moduledoc """
|
|
|
|
Handles the member-related GraphQL calls
|
|
|
|
"""
|
2020-01-26 21:11:16 +01:00
|
|
|
|
2019-04-03 17:29:03 +02:00
|
|
|
alias Mobilizon.Actors
|
|
|
|
alias Mobilizon.Actors.{Actor}
|
|
|
|
|
|
|
|
@doc """
|
|
|
|
Find members for group
|
|
|
|
"""
|
|
|
|
def find_members_for_group(%Actor{} = actor, _args, _resolution) do
|
2019-09-11 03:16:37 +02:00
|
|
|
members = Actors.list_members_for_group(actor)
|
2019-04-03 17:29:03 +02:00
|
|
|
{:ok, members}
|
|
|
|
end
|
|
|
|
end
|