Glific v0.3.1 GlificWeb.Resolvers.Messages View Source

Message Resolver which sits between the GraphQL schema and Glific Message Context API. This layer basically stiches together one or more calls to resolve the incoming queries.

Link to this section Summary

Functions

Get the count of messages filtered by args

Get the count of message media

Get a specific message by id

Get a specific message media by id

Get the list of messages filtered by args

Link to this section Functions

Link to this function

count_messages(_, args, context)

View Source

Specs

count_messages(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of messages filtered by args

Link to this function

count_messages_media(_, args, _)

View Source

Specs

count_messages_media(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of message media

Specs

message(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Get a specific message by id

Link to this function

message_media(_, map, _)

View Source

Specs

message_media(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Get a specific message media by id

Link to this function

messages(_, args, context)

View Source

Specs

messages(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Get the list of messages filtered by args