Skip to content
Snippets Groups Projects
Commit 502b64c8 authored by Martin Korec's avatar Martin Korec
Browse files

fix: include movies in category

parent e5ba3d0e
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,11 @@ export class CategoriesService { ...@@ -18,7 +18,11 @@ export class CategoriesService {
} }
async findAll(): Promise<Category[]> { async findAll(): Promise<Category[]> {
return await this.prisma.category.findMany(); return await this.prisma.category.findMany({
include: {
movies: true,
}
});
} }
async findOne(id: string): Promise<Category> { async findOne(id: string): Promise<Category> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment