Likone
Likone12mo ago

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
Esente
Esente12mo ago
I did give it a try and may assit. What problems are you encoutering?
Likone
Likone12mo ago
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
Likone
Likone12mo ago
Likone
Likone12mo ago
Am i doing something wrong ?
Esente
Esente12mo ago
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.