Skip to content

Commit

Permalink
Update create.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich authored Jan 1, 2024
1 parent ad188e5 commit 6d72004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pages/writing-data/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ let comment: comment::Data = client
.comment()
.create(
"content".to_string(),
// If post wasn't required, then the equals() would need
// If post wasn't required, then this would need
// to be wrapped in comment::post::connect(..).
post::id::equals("id".to_string())
vec![]
Expand All @@ -107,9 +107,9 @@ use prisma::{comment, post};

let comment: comment::Data = client
.comment()
.create(
.create_unchecked(
"content".to_string(),
// requires specifying field for postID,
// requires providing value for postID foreign key,
// rather than connecting a relation
0,
vec![]
Expand Down

0 comments on commit 6d72004

Please sign in to comment.