Hi,
If I have for example this collection with this fields:
History entity
@Id
private String historyId;
private String userId;
private String foodId;
private double totalCalories;
And this Food
entity
@Id
private String foodId;
private String name;
private String description;
private String image;
private double calories;
How I can connect in Json so HistoryId pull foodId?