Glific v0.3.1 GlificWeb.Resolvers.Conversations View Source

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

Link to this section Summary

Functions

Get the list of conversations filtered by args For an authenticated session, we can get the current user from the context via this pattern match %{context: %{current_user: current_user}}

Link to this section Functions

Link to this function

conversations(_, args, _)

View Source

Specs

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

Get the list of conversations filtered by args For an authenticated session, we can get the current user from the context via this pattern match %{context: %{current_user: current_user}}