I'm not sure...
First of all, I'm using MongoDB
And the other thing, If I needed to do this, i would do some like this:
geddy.model.User.first( someId, function(err, user){
user.getSongs(function(err, songs){
user.getPhotos(function(err, photos){
user.getStatus(function(err, status){
self.respond(songs, photos, status);
});
});
});
});
And in the view:
for( var i in songs ){
}
for( var p in photos ){
}
for( var s in status ){
}
but the results will not be intercaled.
Doing this the result will be:
Song
Song2
---
Photo
Photo2
Photo3
---
Status
And I want:
Song
Photo
Photo2
Status
Photo3
Song2
Ordered by createdAt, updatedAt or id, it doesn't matter....its an example...
thanks matthew and sorry