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
Update a trigger
Link to this section Functions
@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
@spec update_trigger(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Update a trigger