Glific v0.3.1 GlificWeb.Resolvers.Searches View Source
Searches Resolver which sits between the GraphQL schema and Glific saved_search 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 saved_searches
Get a specific saved_search by id
Get the list of saved_searches
Link to this section Functions
Specs
count_saved_searches(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of saved_searches
Specs
saved_search(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, map()} | {:error, any()}
Get a specific saved_search by id
Specs
saved_searches(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, [Glific.Searches.SavedSearch]}
Get the list of saved_searches