Leave Localhost logoLeave LocalhostDocs
Reference

Convex Functions Reference

This is a lightweight map of app-owned Convex functions. Generated function references live under packages/backend/convex/_generated.

This is a lightweight map of app-owned Convex functions. Generated function references live under packages/backend/convex/_generated.

Notifications

Public user-facing functions:

  • notifications.queries.getSummary - newest notification preview and unread count for the authenticated user.
  • notifications.queries.list - paginated notification list for the authenticated user.
  • notifications.queries.getPreferences - effective notification preferences.
  • notifications.queries.getPreference - effective preference for one event.
  • notifications.mutations.markRead - marks one owned notification as read.
  • notifications.mutations.markAllRead - marks current-scope unread notifications as read in bounded batches.
  • notifications.mutations.updatePreference - upserts one notification preference.

Server/internal functions:

  • notifications.events.createForUser
  • notifications.events.createForOrganization
  • notifications.mutations.markAllReadBatch
  • notifications.cleanup.deleteExpiredReadNotifications - daily cron; deletes notifications read more than 90 days ago in bounded batches. Never deletes unread rows.

Settings aggregation:

  • settings.notificationSettingsPage - page view model for /settings/notifications.

Audit

  • audit.queries.listAuditEvents - super-admin paginated audit event list.
  • audit.events.recordAuditEvent - internal audit write path for actions, HTTP handlers, and scheduled functions.
  • audit.cleanup.deleteExpiredAuditEvents - daily cron; deletes audit_events older than 365 days in bounded batches. Starter default; change the window in convex/audit/cleanup.ts before launch.

On this page