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
So every once in a while you need many-to-ony and one-to-many relationships, in angular you can fix this problem with the following fix: (see forwardRef):
Now the circular dependency is ok, however when using json:api spec the attribute employee on external target is not an attribute but a relationship when you encounter it nested in a response.
In short: when a resource is being nested in a response in jsonapi, dont parse the relationships, they are not needed at that point. only go one level deep.
The text was updated successfully, but these errors were encountered:
There is a bug with the current implementation for the JSON api adapter (serializer).
Circular relations x <-> y work fine, but when simultaneously y <-> z and using the JSON api adapter, it will fail. Will be addressing this issue in feature #9
So every once in a while you need
many-to-ony
andone-to-many
relationships, in angular you can fix this problem with the following fix: (seeforwardRef
):externaltarget.ts
employee.ts
Now the circular dependency is ok, however when using json:api spec the attribute
employee
on external target is not an attribute but a relationship when you encounter it nested in a response.In short: when a resource is being nested in a response in jsonapi, dont parse the relationships, they are not needed at that point. only go one level deep.
The text was updated successfully, but these errors were encountered: