Glific v0.3.1 GlificWeb.Resolvers.Settings View Source

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

Create a new language. Since language is a basic system data type, this operation is an upsert

Get a specific language by id

Get the list of languages filtered by args

Update language data fields

Link to this section Functions

Link to this function

count_languages(_, args, _)

View Source

Specs

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

Get the count of languages filtered by args

Link to this function

create_language(_, map, _)

View Source

Specs

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

Create a new language. Since language is a basic system data type, this operation is an upsert

Specs

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

Get a specific language by id

Specs

languages(Absinthe.Resolution.t(), %{required(atom()) => any()}, %{
  context: map()
}) :: {:ok, any()} | {:error, any()}

Get the list of languages filtered by args

Link to this function

update_language(_, map, _)

View Source

Specs

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

Update language data fields