View Source Mobilizon.GraphQL.Resolvers.Member (Mobilizon v5.0.0-beta.1)

Handles the member-related GraphQL calls

Summary

Functions

Link to this function

accept_invitation(parent, map1, map2)

View Source
@spec accept_invitation(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Member.t()} | {:error, String.t()}
Link to this function

approve_member(parent, map1, map2)

View Source
Link to this function

count_members_for_group(group, args, resolution)

View Source
Link to this function

find_members_for_group(group, args, resolution)

View Source

Find members for group.

If actor requesting is not part of the group, we only return the number of members, not members

Link to this function

invite_member(parent, map1, map2)

View Source
@spec invite_member(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Member.t()} | {:error, String.t()}
Link to this function

reject_invitation(parent, map1, map2)

View Source
@spec reject_invitation(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Member.t()} | {:error, String.t()}
Link to this function

reject_member(parent, map1, map2)

View Source
Link to this function

remove_member(parent, arg2, arg3)

View Source
@spec remove_member(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Member.t()} | {:error, String.t()}
Link to this function

update_member(parent, arg2, arg3)

View Source
@spec update_member(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Member.t()} | {:error, String.t()}