You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Won't have to be implemented now
We may need it to avoid boilerplate and duplicated structs.
For the serialization might be easy:
structUser{letfriends:[User]}
During serialization we have to make sure that friends for User's inside friends is not serialized.
For creation might get more tricky because we can't provide the relationships at initialization time.
Current downsides:
To support /user/:id
You need to create two entities
Won't have to be implemented now
We may need it to avoid boilerplate and duplicated structs.
For the serialization might be easy:
During serialization we have to make sure that friends for User's inside friends is not serialized.
For creation might get more tricky because we can't provide the relationships at initialization time.
Current downsides:
To support
/user/:id
You need to create two entities
Gets even worst with user and friendships you need 4 entities to support
/user/:id
and/friendship/:id
The text was updated successfully, but these errors were encountered: