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
@spec consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, [Glific.Saas.ConsultingHour]}
Get the list of consulting hour filtered by args
@spec count_consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of consulting hours filtered by args
@spec create_consulting_hour(Absinthe.Resolution.t(), %{input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Create consulting hour
@spec delete_consulting_hour(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Delete consulting hour
@spec fetch_consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, String.t()}
Fetches consulting hours between start_date and end_date
@spec get_consulting_hours(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Fetch consulting hour based id
@spec update_consulting_hour( Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{context: map()} ) :: {:ok, any()} | {:error, any()}
Update consulting hour