I have an entity called UpNextQueue that has a one to many relationship with UpNextItem. A queue is expected to have 1000s of items and there can only be one queue at any given time in my app.
How do I ensure that there’s only one instance of UpNextQueue in Core Data? And if one already exists, overwrite its upNextItems instead?