I have an artist model that has a collection of songs. I am not populating the related songs in the blueprints config, but I would like to at least get a count back so I know how many songs are on each artist. Here is what my simple artist model looks like:
module.exports = {
attributes: {
name:{
type: 'string',
required: true
},
songs:{
collection: 'song',
via: 'artist'
}
}
};