Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In search of existing solution for how to output id instead of whole object in relationships #562

Closed
robert-dodier opened this issue May 8, 2019 · 1 comment

Comments

@robert-dodier
Copy link

robert-dodier commented May 8, 2019

Hi, I'd like to output relationships as just the id instead of the whole object. I believe that this issue: #415 is just the same. At that time (August 2017) there wasn't a way to output the referred-to id instead of the whole object -- has the situation changed since #415 was posted?

The best solution I have come to is to modify the [String: Any] dictionary which is returned by export. I am thinking I can look for the keys which correspond to referred-to objects, and replace the value with just the id of the referred-to object. Is there any reason to think that's not a good idea? Has anyone already implemented that? Has anyone already implemented a different solution?

By the way, I am assuming that Sync doesn't have a built-in way to export relationships by id -- have I overlooked something? If there's a built-in way to handle it, that would be ideal.

Thank you in advance for any information on this topic.

@3lvis
Copy link
Owner

3lvis commented Feb 11, 2020

Thanks for your support in this library. It has been a while since I used CoreData in any of my projects and it's hard for me to maintain this library. If you have been part of the Sync contributors group and want to take ownership of the library let me know to [email protected]. For now, I'll be archiving this library.

@3lvis 3lvis closed this as completed Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants