fix: debug prisma client

This commit is contained in:
shadcn 2022-11-03 14:50:12 +04:00
parent 6a44ab9c33
commit d6a463732d

13
app/posts/page.tsx Normal file
View file

@ -0,0 +1,13 @@
import { db } from "@/lib/db"
export default async function PostsPage() {
const posts = await db.post.findMany()
return (
<div>
{posts.map((post) => (
<div key={post.id}>{post.title}</div>
))}
</div>
)
}