GET data based on GUID in custom script


#1

I am attempting a get call from our application to a custom script in DreamFactory. the db I am accessing is AccraConnect_Employee. .

if (event.request.method === “GET”) {
params = event.request.parameters;
resource = event.resource;

var mysqldata = platform.api.get(“AccraConnect_Old/_table/AccraConnect_Employee”, resource);

var_dump(event);

return mysqldata;

}

that returns all information from employee database. we are passing in a path of employee/{guid}. how do i change the above code to single out 1 record by guid?