From 5987ea85dd9dde671a598970ff384a8a47092116 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Mon, 1 Jan 2024 11:46:06 +0800 Subject: [PATCH] Update update.md --- docs/pages/writing-data/update.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/pages/writing-data/update.md b/docs/pages/writing-data/update.md index 2d3b37a8..32f1e937 100644 --- a/docs/pages/writing-data/update.md +++ b/docs/pages/writing-data/update.md @@ -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()