I am working with this code link. Datatable is created but how can i use populate method with query. As according to provide code:
exports.getDataForDataTable = function getData (request, response)
{
MyModel.dataTable(request.query, function (err, data) {
response.send(data);
});
};