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

Tag Resolver which sits between the GraphQL schema and Glific Tag 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 tags filtered by args

Create entry for tag mapped to template

Get a specific tag by id

Get the list of tags filtered by args

Creates and/or deletes a list of contact tags, each tag attached to the same contact

Creates and/or deletes a list of template tags, each tag attached to the same template

Link to this section Functions

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

Get the count of tags filtered by args

Link to this function

create_template_tag(_, map, _)

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

Create entry for tag mapped to template

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

Get a specific tag by id

@spec tags(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, [Glific.Tags.Tag]}

Get the list of tags filtered by args

Link to this function

update_contact_tags(_, map, _)

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

Creates and/or deletes a list of contact tags, each tag attached to the same contact

Link to this function

update_template_tags(_, map, _)

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

Creates and/or deletes a list of template tags, each tag attached to the same template