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

Support MongoDB embedded objects. #19

Open
csellis opened this issue Jan 25, 2024 · 1 comment
Open

Support MongoDB embedded objects. #19

csellis opened this issue Jan 25, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@csellis
Copy link

csellis commented Jan 25, 2024

Loving the tool, thank you!
I'd like to know if you've covered MongoDB and Prisma.

It supports embedded document syntax which would be handy to have mapped.

model User {
  id      String   @id @default(auto()) @map("_id") @db.ObjectId
  email   String   @unique
  name    String?
  address Address? 👈
  posts   Post[]
}

// Address is an embedded document
type Address {
  street String
  city   String
  state  String
  zip    String
}
@samchon
Copy link
Owner

samchon commented Jan 25, 2024

I've not used MongoDB through Prisma.

Can you give me a reproducible prisma schame file?

Also, how should I express the nested type in the document?

MongoDB is not relational database, so wonder whether that ERD is meaningful for the NoSQL MongoDB

@samchon samchon self-assigned this Jan 25, 2024
@samchon samchon added help wanted Extra attention is needed question Further information is requested labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants