Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ func createTodo() -> AnyCancellable {

</BlockSwitcher>

<Callout>

**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.

</Callout>

</InlineFilter>

<InlineFilter filters={["android"]}>
Expand Down
Loading