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
@spec count_notifications(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of notifications filtered by args
@spec mark_notification_as_read(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, boolean()}
Mark all the unread messages as read
@spec notifications(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, [Glific.Notifications.Notification]}
Get the list of notifications filtered by args