test(server): migrate to node internal test (#2000)

This commit is contained in:
Himself65
2023-04-18 00:07:03 -05:00
committed by GitHub
parent ea9861bfa0
commit 18223c22ef
13 changed files with 108 additions and 487 deletions

View File

@@ -35,6 +35,15 @@ export class Workspace implements workspaces {
export class WorkspaceResolver {
constructor(private readonly prisma: PrismaService) {}
// debug only query should be removed
@Query(() => [Workspace], {
name: 'workspaces',
description: 'Get all workspaces',
})
async workspaces() {
return this.prisma.workspaces.findMany();
}
@Query(() => Workspace, {
name: 'workspace',
description: 'Get workspace by id',