We have a back-end component that exposes database (PostgreSQL) data via JPA to RESTful API.
The problem is that when sending a JPA entity as a REST response, I can
@OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, fetch = FetchType.LAZY) private List children = new ArrayList<>();
Just try adding the fetch property to the field you want not to be eagerly fetched