-
Notifications
You must be signed in to change notification settings - Fork 746
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
Help Article: Implicit to Explicit Conversion #4768
base: main
Are you sure you want to change the base?
Conversation
Converting implicit many-to-many relations to explicit many-to-many
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This PR changes the following pages (Vercel Preview Deploy links): Changed Vercel links (Note that links will only be valid after Vercel preview deploy succeeded) |
This PR probably requires the following redirects to be added to vercel.json:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should change jsx
to prisma
on the code blocks but otherwise it looks good 👍
Updated code snippets with appropriate extensions
I have made the change in code blocks. If it looks good, we can go ahead and merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed.
Page is missing file extension and front matter.
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
.../500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion.mdx
Outdated
Show resolved
Hide resolved
...ides/500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion
Outdated
Show resolved
Hide resolved
...ides/500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion
Outdated
Show resolved
Hide resolved
...ides/500-other/880-troubleshooting-orm/100-help-articles/800-implicit-to-explicit-conversion
Outdated
Show resolved
Hide resolved
```prisma | ||
model User { | ||
id Int @id @default(autoincrement()) | ||
name String | ||
posts Post[] | ||
} | ||
|
||
model Post { | ||
id Int @id @default(autoincrement()) | ||
title String | ||
authors User[] | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be helpful to actually show the SQL of the underlying relation table here. Fundamentally, this guide needs to teach how the already existing relation table is being surfaced in the Prisma schema.
Question: Right now, the guide teaches how to create a new model to represent the relation table. Wouldn't it be possible to just reuse the already existing relation table that Prisma maintains for you? |
…articles/800-implicit-to-explicit-conversion.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
…articles/800-implicit-to-explicit-conversion.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
…articles/800-implicit-to-explicit-conversion.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
…articles/800-implicit-to-explicit-conversion.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
…articles/800-implicit-to-explicit-conversion.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
Help article for converting implicit many-to-many relations to explicit many-to-many
What issue does this fix?