function getGroupsById
getGroupsById(): Promise<Map<number, Group>>

Every group keyed by id, from the request-cached set — the batched alternative to one findById per id when resolving or validating many groups without tripping the N+1 read guard.

Return Type

Promise<Map<number, Group>>

Usage

import { getGroupsById } from "docs/database.ts";