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

Flow Labels Resolver which sits between the GraphQL schema and Glific Flow Label 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 flow labels filtered by args

Get a specific flow label by id

Get the list of flow labels

Link to this section Functions

Link to this function

count_flow_labels(_, args, _)

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

Get the count of flow labels filtered by args

Link to this function

flow_label(_, map1, map2)

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

Get a specific flow label by id

@spec flow_labels(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, [Glific.Flows.FlowLabel]}

Get the list of flow labels