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

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

Link to this section Summary

Functions

Get the count of notifications filtered by args

Mark all the unread messages as read

Get the list of notifications filtered by args

Link to this section Functions

Link to this function

count_notifications(_, args, _)

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

Get the count of notifications filtered by args

Link to this function

mark_notification_as_read(_, args, _)

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

Mark all the unread messages as read

Link to this function

notifications(_, args, _)

View Source
@spec notifications(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, [Glific.Notifications.Notification]}

Get the list of notifications filtered by args