View Source GlificWeb.Resolvers.ConsultingHours (Glific v5.1.6)

Consulting Hours Resolver which sits between the GraphQL schema and Glific Consulting Hour Context API. This layer basically stitches together one or more calls to resolve the incoming queries.

Link to this section Summary

Functions

Get the list of consulting hour filtered by args

Get the count of consulting hours filtered by args

Create consulting hour

Delete consulting hour

Fetches consulting hours between start_date and end_date

Fetch consulting hour based id

Update consulting hour

Link to this section Functions

Link to this function

consulting_hours(_, args, _)

View Source
@spec consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, [Glific.Saas.ConsultingHour]}

Get the list of consulting hour filtered by args

Link to this function

count_consulting_hours(_, args, _)

View Source
@spec count_consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of consulting hours filtered by args

Link to this function

create_consulting_hour(_, map, _)

View Source
@spec create_consulting_hour(Absinthe.Resolution.t(), %{input: map()}, %{
  context: map()
}) ::
  {:ok, any()} | {:error, any()}

Create consulting hour

Link to this function

delete_consulting_hour(_, map, _)

View Source
@spec delete_consulting_hour(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Delete consulting hour

Link to this function

fetch_consulting_hours(_, args, _)

View Source
@spec fetch_consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, String.t()}

Fetches consulting hours between start_date and end_date

Link to this function

get_consulting_hours(_, map, _)

View Source
@spec get_consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Fetch consulting hour based id

Link to this function

update_consulting_hour(_, map, _)

View Source
@spec update_consulting_hour(
  Absinthe.Resolution.t(),
  %{id: integer(), input: map()},
  %{context: map()}
) ::
  {:ok, any()} | {:error, any()}

Update consulting hour