Is there anyone using kv with pentagon ORM and Zod ?
I've tried using pentagon for Deno kv in a Fresh project, and it seems like it's not working.
5 Replies
I did give it a try and may assit. What problems are you encoutering?
Thanks for jour response. When i insert using db.users.create, it returns a response. But when i'm retrieving with findFirst or findMany, it always returns indefined




Am i doing something wrong ?
You may need to use
.describe("primary")
in your Zod schema to mark the primary key. It's Pentagon's way.
I suppose that should be mentioned in the doc.