Glific v0.3.1 GlificWeb.Resolvers.Tags View Source

Tag Resolver which sits between the GraphQL schema and Glific Tag Context API. This layer basically stiches 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

Link to this function

count_tags(_, args, context)

View Source

Specs

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

Specs

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

Create entry for tag mapped to template

Specs

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

Get a specific tag by id

Specs

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

Specs

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

Specs

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