function getNotificationsForUser
getNotificationsForUser(
userId: string,
page: number,
limit: number
): Page<Notification>

Returns a page of userId's notifications, newest first, with their refs joined, for GET /api/me/notifications.

Parameters

userId: string
page: number
limit: number

Return Type

Throws

APIException

500 when a row doesn't parse.

Usage

import { getNotificationsForUser } from "api/services/notification-service.ts";