Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle composite types #137

Open
bpouzet opened this issue Jul 25, 2022 · 0 comments
Open

Handle composite types #137

bpouzet opened this issue Jul 25, 2022 · 0 comments

Comments

@bpouzet
Copy link

bpouzet commented Jul 25, 2022

Hello,

When I define a composite type it is not exported in zod folder.

Do you know why ?

datasource db {
  provider = "mongodb"
  url      = "..."
}

generator zod {
  provider = "zod-prisma"
}

type Photo {
    height Int
    width  Int
    url    String
}

model Place {
    id String @id @default(auto()) @map("_id") @db.ObjectId
    photos  Photo[]
}
@bpouzet bpouzet changed the title Custom Prima Type Handle composite types Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant