Glific v0.3.1 GlificWeb.Resolvers.Contacts View Source

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

Link to this section Summary

Functions

Get current location of the contact

Get the count of contacts filtered by args

Link to this section Functions

Link to this function

contact_location(_, map, _)

View Source

Specs

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

Get current location of the contact

Link to this function

count_contacts(_, args, context)

View Source

Specs

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

Get the count of contacts filtered by args