An engineer answered this in the WWDC Slack. SwiftData does currently not support child contexts. A way around this would be to use a custom context, do the edits there and then apply them back to the mainContext and save it.
Topic:
Programming Languages
SubTopic:
Swift
Tags: