Adding our Show Handler
Background
Creating out Show Method
function show(event, rc, prc){
var allUsers = userService.allUsers( rc.userId );
prc.response.setData(allusers);
}function allUsers( numeric userId ){ return qb.from("users").get(); }function allUsers( numeric userId ){ return qb.from("users") .where("id",arguments.userId) .get(); }function allUsers(numeric userId=0){ return qb.from("users") .when(arguments.userid>0,(q)=>{ q.where("id",userId) }) .get(); }function allUsers( numeric userId = 0 ){ return qb .from( "users" ) .when( arguments.userid > 0, ( q ) => { q.where( "id", userId ) } ) .get(); }
Last updated