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

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

Link to this section Summary

Functions

Make a copy of interactive template

Get the count of session Interactives filtered by args

Get a specific session template by id

Get the list of session Interactives filtered by args

Link to this section Functions

Link to this function

copy_interactive_template(_, map, _)

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

Make a copy of interactive template

Link to this function

count_interactive_templates(_, args, _)

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

Get the count of session Interactives filtered by args

Link to this function

interactive_template(_, map, _)

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

Get a specific session template by id

Link to this function

interactive_templates(_, args, _)

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

Get the list of session Interactives filtered by args