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

Handles the comment-related GraphQL calls.

Summary

Functions

Link to this function

create_comment(parent, args, arg3)

View Source
@spec create_comment(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Discussions.Comment.t()}
  | {:error, :unauthorized | :not_found | any() | String.t()}
Link to this function

delete_comment(parent, arg2, arg3)

View Source
Link to this function

get_thread(parent, map, context)

View Source
@spec get_thread(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, [Mobilizon.Discussions.Comment.t()]}
Link to this function

update_comment(parent, arg2, arg3)

View Source
@spec update_comment(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Discussions.Comment.t()}
  | {:error, :unauthorized | :not_found | any() | String.t()}