0

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?

Carlos Pliego
  • 859
  • 1
  • 8
  • 19

1 Answers1

-1

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.

Community
  • 1
  • 1
user963991
  • 19
  • 3