chrishoermann / zod-prisma-types

Generator creates zod types for your prisma models with advanced validation
Other
661 stars 50 forks source link

add relation value support when using mongodb provider #268

Open DeRp-DaWg opened 3 months ago

DeRp-DaWg commented 3 months ago

Fixes: #254

This commit adds a isCompositeType boolean to the ExtendedDMMFField class. It removes checks for the MongoDB provider, and instead checks if a field is a composite type on a field by field basis, which means the schemas can now contain nested "WithRelations" model schemas, like any other provider can.