In case anyone else stumbles across this, I found the following syntax resolved the error for me:
@Relationship(inverse: \Item.category)
var items: [Item]? = []
var category: ItemCategory?
Seems to work so I guess it's correct? 🤷
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: