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

Does Swarm support nested objects and how ? #47

Open
BerayekZ opened this issue Feb 23, 2015 · 3 comments
Open

Does Swarm support nested objects and how ? #47

BerayekZ opened this issue Feb 23, 2015 · 3 comments

Comments

@BerayekZ
Copy link

I would like to know if there is some any way to support nested objects.

@riston
Copy link

riston commented Mar 22, 2015

Well by nested objects you mean what exactly ? As far I have understood you could create the Syncable Model for example Item and which is part of the ItemList objectType for the Vector or Set ?

@gritzko
Copy link
Owner

gritzko commented Apr 8, 2015

In the 0.3 it is possible to manually keep object ids as strings and fetch referenced objects. Also, Model may have nested JSON values, but those will not be syncables (i.e. last write wins). Another possibility is to use collections that load all of the members at once.
Of course, it is way more convenient to have syncable objects graphs that load (semi) automatically so the developer does not bother with manual fetching and stuff. That comes in 0.4 with Syncable.Ref.

@gritzko
Copy link
Owner

gritzko commented Oct 16, 2015

JSON nested Last-Write-Wins objects is another option...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants