I made a Hyperledger composer Network. I want to see My function that have a query code.
for example, My function' content is
/**
 * @param {hansung.ac.kr.transaction.selectUserByCertificateName}  tx  - the member to be processed
 * @transaction
 */
function selectUserByCertificateName (tx) {
  var idList = [];
  query("selectCertificateByName" , {targetName: tx.certificateName })
  .then(function (certificateList) {
     certificateList.forEach(function (certificate) {
     idList.push(certificate.ownerId);
     })
  }).then(function () {
     idList.forEach(function (id) {
        query("selectUserById" , {targetId: id })
        .then(function (userList){
         console.log(userList); 
        });
     })
  });
}
this case, I attempt to console.log. I want to see this result(userList) in my angular page.
In angular, http.get method is used for receiveing rest-server data
but, I don't know how to editing composer-rest-server response format I want to sending userList to rest Response.
How to extend Composer rest Server ?