{"size": 243, "ext": "js", "max_stars_repo_path": "server/graphql/resolvers/User/markNotificationsAsViewed.js", "max_stars_repo_name": "Picroup/Picroup-Full-Stack", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/graphql/resolvers/User/markNotificationsAsViewed.js", "max_issues_repo_name": "Picroup/Picroup-Full-Stack", "max_issues_repo_issues_event_min_datetime": "2018-03-16T12:38:05.000Z", "max_issues_repo_issues_event_max_datetime": "2018-09-28T09:47:31.000Z", "max_forks_repo_path": "server/graphql/resolvers/User/markNotificationsAsViewed.js", "max_forks_repo_name": "Picroup/Picroup-Full-Stack", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 64, "max_forks_count": null, "avg_line_length": 27.0, "max_line_length": 70, "alphanum_fraction": 0.7489711934}


export const createMarkNotificationsAsViewedResolver = ({dependency: {
  Notification,
  User
  }}) => async ({_id: userId}) => {
  await Notification.markNotificationsAsViewed(userId);
  return await User.clearNotificationsCount(userId);
};