Why this library?
You want to get the last 10 updated posts from your PocketBase collection. So you start with…
The PocketBase SDK
Oops, you forgot to expand the author
field because you don’t want the author id but the author name. So you…
Expand
Great, but now you want to validate the data you get from PocketBase because the rule is that you should not trust anything for the outer world.
You also just include the fields that you really need for your app and remove the ugly expand
properties. So you add…
A Zod Schema
Better, but even if you get your validated structured data now, you could reduce the size of the response from the server by adding…
Fields
Cool! So what would you need Zod PocketBase for?