I am working on a project using SailsJS as backend. In its waterline data model, I defined a model Abc. Abc has a property, images, which is a collection. Each value in images is an id of an instance of a different Image model.
When I post an object to '/abc', with images property of the object set to be a string containing ids of images, such as '1,2', the Abc instance creation process works, as shown by results of subsequent GET requests.
In current settings, when the 'POST /abc' process works, the newly created abc instance will be returned as server response.
POST /abc?property1=' '&property2=' '&images='1,2'...
server response:
{ id: 1000, property1=' ', property2=' ', ....}
However, server response does not contain populated images properties.
How can I request server to return populated images property for the newly created abc instance in its response?