Skip to content

Revises multiple locations describing compound IDs and unique constraints - #4591

Merged
nikolasburk merged 9 commits into
mainfrom
compound-id-unique-id-section
Nov 23, 2023
Merged

Revises multiple locations describing compound IDs and unique constraints#4591
nikolasburk merged 9 commits into
mainfrom
compound-id-unique-id-section

Conversation

@sabinadams

@sabinadams sabinadams commented Mar 24, 2023

Copy link
Copy Markdown
Contributor

Closes #4588
Closes #1051

This PR does a few things:

  1. Removes the existing section describing how to query using a Compound ID and/or Compound Unique Constraint
  2. Adds a clarifying message to the @@id section about the resulting field's name
  3. Adds a clarifying message to the @@unique section about the resulting field's name
  4. Adds a new page dedicated to using composite IDs and unique constraints in Prisma Client queries

@vercel

vercel Bot commented Mar 24, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2023 4:20pm

@sabinadams sabinadams self-assigned this Mar 24, 2023
@sabinadams
sabinadams requested a review from janpio March 24, 2023 03:00
@github-actions

Copy link
Copy Markdown
Contributor

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)

@sabinadams

Copy link
Copy Markdown
Contributor Author

@janpio Made a pretty sizeable change to multiple locations relating to @@id and @@unique. Let me know what you think!

@github-actions

Copy link
Copy Markdown
Contributor

This PR probably requires the following redirects to be added to vercel.json:

  • This PR does not change any pages in a way that would require a redirect.

Comment thread content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx Outdated
Comment thread content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx Outdated
Comment thread content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx Outdated
Comment thread content/200-concepts/100-components/01-prisma-schema/04-data-model.mdx Outdated
…ng-with-fields/300-working-with-composite-ids-and-constraints.mdx
…ng-with-fields/300-working-with-composite-ids-and-constraints.mdx
@nikolasburk
nikolasburk merged commit 2b37c44 into main Nov 23, 2023
@nikolasburk
nikolasburk deleted the compound-id-unique-id-section branch November 23, 2023 16:20
@nikolasburk

Copy link
Copy Markdown
Contributor

Thanks @sabinadams 😉 hope you're doing well! 💚

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

Successfully merging this pull request may close these issues.

Clarify docs on @@id and how to use composite IDs in Prisma Client Document composite keys in the find/update/delete sections of the docs

2 participants