mobilizon.chapril.org-mobil.../lib/graphql/resolvers/member.ex
2020-01-26 21:15:04 +01:00

17 lines
366 B
Elixir

defmodule Mobilizon.GraphQL.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
members = Actors.list_members_for_group(actor)
{:ok, members}
end
end