1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-25 01:12:30 +00:00
mobilizon/lib/mobilizon_web/resolvers/member.ex

16 lines
360 B
Elixir
Raw Normal View History

defmodule MobilizonWeb.Resolvers.Member do
@moduledoc """
Handles the member-related GraphQL calls
"""
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 01:16:37 +00:00
members = Actors.list_members_for_group(actor)
{:ok, members}
end
end