Glific v0.3.1 GlificWeb.Resolvers.Partners View Source

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

Get the count of providers filtered by args

Creates an organization

Creates a provider

Deletes an organization

Deletes a provider

Get a specific organization by id

Get the list of organizations filtered by args

Get a specific provider by id

Get the list of providers

Updates an organization

Updates a provider

Link to this section Functions

Link to this function

count_organizations(_, args, _)

View Source

Specs

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

Get the count of organizations filtered by args

Link to this function

count_providers(_, args, _)

View Source

Specs

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

Get the count of providers filtered by args

Link to this function

create_organization(_, map, _)

View Source

Specs

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

Creates an organization

Link to this function

create_provider(_, map, _)

View Source

Specs

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

Creates a provider

Link to this function

delete_organization(_, map, _)

View Source

Specs

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

Deletes an organization

Link to this function

delete_provider(_, map, _)

View Source

Specs

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

Deletes a provider

Link to this function

organization(_, arg2, arg3)

View Source

Specs

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

Get a specific organization by id

Link to this function

organizations(_, args, _)

View Source

Specs

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

Get the list of organizations filtered by args

Specs

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

Get a specific provider by id

Specs

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

Get the list of providers

Link to this function

update_organization(_, map, _)

View Source

Specs

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

Updates an organization

Link to this function

update_provider(_, map, _)

View Source

Specs

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

Updates a provider