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