Originally reported [here](https://github.com/spring-projects/spring-data-rest/issues/2350#issuecomment-1899478162). Reproducer [here](https://github.com/kamangacode/spring-data-rest-ano). Pretty simple (read: stupid) bug. We are using `break` inside a loop instead of a `continue`. That's why we only append one element.