View Source GlificWeb.Resolvers.Triggers (Glific v5.1.6)

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

Link to this section Summary

Functions

Get the count of triggers filtered by args

Get the list of triggers filtered by args

Link to this section Functions

Link to this function

count_triggers(_, args, _)

View Source
@spec count_triggers(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of triggers filtered by args

@spec triggers(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, [any()]}

Get the list of triggers filtered by args

Link to this function

update_trigger(_, map1, map2)

View Source
@spec update_trigger(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{
  context: map()
}) ::
  {:ok, any()} | {:error, any()}

Update a trigger