Skip to content

Commit

Permalink
Update update.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich authored Jan 1, 2024
1 parent 6d72004 commit 5987ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/writing-data/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ use prisma::{comment, post};

let comment: comment::Data = client
.comment()
.update(
.update_unchecked(
comment::id::equals("some comment id".to_string()),
// can't `connect` relations, but can set foreign keys directly
vec![comment::post_id::set("some post id".to_string())]
)
.exec()
Expand Down

0 comments on commit 5987ea8

Please sign in to comment.