Review GraphQL batching authorization

src/project-batcher-types.tsTypeScript
@@ -0,0 +1,15 @@
1+export interface Viewer {
2+ userId: string;
3+ tenantId: string;
4+ allowedProjectIds: readonly string[];
5+}
6+
7+export interface Project {
8+ id: string;
9+ tenantId: string;
10+ name: string;
11+}
12+
13+export interface ProjectDatabase {
14+ findByTenantAndIds(tenantId: string, ids: readonly string[]): Promise<Project[]>;
15+}