x
This commit is contained in:
1 parent
c23a4723ed
commit
07e9413a6b
13 files changed
+497
-94
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
const prisma = new PrismaClient();
|
||||
prisma.page.findUnique({
|
||||
where: { slug: 'home' },
|
||||
include: {
|
||||
translations: true,
|
||||
sections: {
|
||||
include: {
|
||||
translations: true
|
||||
},
|
||||
orderBy: { order: "asc" }
|
||||
}
|
||||
}
|
||||
}).then(console.log).catch(console.error).finally(() => prisma.$disconnect());
|
||||
Reference in new issue
Block a user