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
Specs
count_messages(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of messages filtered by args
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
Specs
message_media(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Get a specific message media by id
Specs
messages(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get the list of messages filtered by args