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
Specs
count_tags(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of tags filtered by args
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
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
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