Glific v0.3.1 GlificWeb.Resolvers.Flows View Source

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

Get a specific flow by id

Get the list of flows

Link to this section Functions

Link to this function

count_flows(_, args, context)

View Source

Specs

count_flows(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of flows filtered by args

Specs

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

Get a specific flow by id

Specs

flows(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, [Glific.Flows.Flow]}

Get the list of flows