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
@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
@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
@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