lagoshny / ngx-hal-client

Spring HAL client for Angular
21 stars 15 forks source link

EmbeddedResource fetching not working #32

Open vikramshrowty opened 3 years ago

vikramshrowty commented 3 years ago

I'm trying to use the new EmbeddedResource functionality and I can't get it to work. My embedded relation array comes up empty. Looking into the code, I don't see how it would work. Specifically, it gets here : https://github.com/lagoshny/ngx-hal-client/blob/c88e24562de5ffffa437448cbd38c43faa0a8590/projects/ngx-hal-client/src/lib/core/model/base-resource.ts#L102

finds the _link missing , which it will be missing because it is embedded and then bails out with an empty array. I'm probably not using it right, but not sure what I'm doing wrong.

lagoshny commented 3 years ago

Hi @vikramshrowty , can you provide some model representation when using @Embedded entity and embedded relation array in your case?