From 6a050ff271931eb0acb98be52dec0ae94062b870 Mon Sep 17 00:00:00 2001 From: Varshitha Pamisetty Date: Fri, 25 Sep 2026 15:31:41 +0200 Subject: [PATCH] docs: clarify Swift mutation partial result with relationships --- .../[platform]/build-a-backend/data/mutate-data/index.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/[platform]/build-a-backend/data/mutate-data/index.mdx b/src/pages/[platform]/build-a-backend/data/mutate-data/index.mdx index 53ca2a1fc8d..0ebe9361725 100644 --- a/src/pages/[platform]/build-a-backend/data/mutate-data/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/mutate-data/index.mdx @@ -137,6 +137,12 @@ func createTodo() -> AnyCancellable { + + +**Note:** When your model has a relationship, a mutation can return `.failure(.partial(data, errors))` even though the item was created. This happens when different authorization rules apply to the related model, because AppSync redacts the related object and the mutation reports that as an error. The `data` associated value holds the created item, including the id of the related record, so you can use it and perform a query to read the relational data. Review [Relationships](/[platform]/build-a-backend/data/data-modeling/relationships/) for more details. + + +