loopback get relationship

JavaScript
var customer = order.customer();
Source

Also in JavaScript: