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

Did you find this page helpful?