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
@spec copy_interactive_template( Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() } ) :: {:ok, any()} | {:error, any()}
Make a copy of interactive template
@spec count_interactive_templates(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of session Interactives filtered by args
@spec interactive_template(Absinthe.Resolution.t(), %{id: integer()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Get a specific session template by id
@spec interactive_templates(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get the list of session Interactives filtered by args