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
Specs
count_organizations(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of organizations filtered by args
Specs
count_providers(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of providers filtered by args
Specs
create_organization(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Creates an organization
Specs
create_provider(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Creates a provider
Specs
delete_organization(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Deletes an organization
Specs
delete_provider(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Deletes a provider
Specs
organization(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get a specific organization by id
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
Specs
update_organization(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Updates an organization
Specs
update_provider(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Updates a provider