SyneticNL / Hyral

Hypermedia oriented Resource API Layer
MIT License
34 stars 2 forks source link

Immutability issue with relationships #116

Open thomasdik1989 opened 5 years ago

thomasdik1989 commented 5 years ago

Immutability issue while applying relationships to data. Data should be replaced instead of appending to.

resource.data[field] = relationshipGetResource(resource.data[field], includedRelations);