---
title: findComments
description: >-
  `findComment` for each of `ids` in one query, by id, for a list of reports:
  ids with no such comment are absent, and so is every id when there's 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: findComments
  signatures:
    - >-
      findComments(env: Readonly<Record<string, unknown>>, database: string,
      vault: string, ids: readonly string[]): Promise<Map<string,
      [[reference/api/plugin-annotations/server/ReportedComment|ReportedComment]]>>
  parameters:
    - name: env
      type: 'Readonly<Record<string, unknown>>'
    - name: database
      type: string
    - name: vault
      type: string
    - name: ids
      type: 'readonly string[]'
  returns:
    type: >-
      Promise<Map<string,
      [[reference/api/plugin-annotations/server/ReportedComment|ReportedComment]]>>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-annotations/src/server.ts#L365
---

# findComments
