Comments (2)
Hmmm. I can certainly see the use case for this. I'll think about how it fits in and get back to you with something. Thanks for the suggestion!
from zod-prisma.
I've had a bit of a rethink on this one. I may just be that my app and schema are a bit complex. Like I never query a single table and return it, it's always complicated join queries, and I also have to transform a some of the data to be consumed client side.. But I've found in practice it's better to write my client side types by hand.
from zod-prisma.
Related Issues (20)
- Upcoming rename of `@prisma/sdk` to `@prisma/internals` with Prisma 4 HOT 2
- Optional fields should use nullable instead of nullish HOT 1
- Add support for model level definition
- Add support for connectors
- Handle composite types
- Possibility to pre-release feat/1.0-beta
- Upgrade to Prisma v4
- Support for Prisma v4 HOT 3
- Passing arguments to "z.string()" HOT 2
- new relationModel with optional relations
- More examples
- Custom Zod Schema in an Int field stills adds .int() at the end
- Is this library alive? HOT 30
- Decimal validation wrong for data loaded from database
- Impossible to `yarn remove zod` while `zod-prisma` is installed
- nullish with id autoincrement HOT 4
- Mongo DB Support
- typescript, which is a runtime dependency, is specified as a devDependency
- Bytes is `z.unknown`
- Wrong Zod schema when working with Decimal in Prisma model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zod-prisma.