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
Specs
count_languages(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of languages filtered by args
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
Specs
update_language(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Update language data fields