---
title: findComment
description: >-
  Comment `id` of `vault`, hidden or not, from the annotations stored in the D1
  binding named `database`: what the moderation plugin shows beside a report
  about it. `undefined` when there's no such comment, or no such binding.
updated_at: '2026-11-19T21:17:45+01:00'
created_at: '2026-11-11T18:31:18+01:00'
symbol:
  kind: function
  name: findComment
  signatures:
    - >-
      findComment(env: Readonly<Record<string, unknown>>, database: string,
      vault: string, id: string):
      Promise<[[reference/api/plugin-annotations/server/ReportedComment|ReportedComment]]
      | undefined>
  parameters:
    - name: env
      type: 'Readonly<Record<string, unknown>>'
    - name: database
      type: string
    - name: vault
      type: string
    - name: id
      type: string
  returns:
    type: >-
      Promise<[[reference/api/plugin-annotations/server/ReportedComment|ReportedComment]]
      | undefined>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-annotations/src/server.ts#L354
---

# findComment
