For example I would like to do the following.
Model.find({select: ['id', 'fields.name']}
or something like this?
Model.find({select: ['id', {fields:['name']}]
Is it even possible to do nested selects in waterline?
For example I would like to do the following.
Model.find({select: ['id', 'fields.name']}
or something like this?
Model.find({select: ['id', {fields:['name']}]
Is it even possible to do nested selects in waterline?
This question has been answered here
get Selected fields in .populate() waterline-postgresql .populate('fieldName',{select:[]})
select is not supported in .populate(). You can see this github issue. In populate select is not working currently.
This is feature request and it is open issue. hope in next release waterline team will introduce this feature.