N1QL Join to embed a child document array into parent document

Hi, I am stuck on what seems like a relatively simple need but can’t seem to get this to work the way i want it.
I have two document types. Cust and Address. Cust to address is a one to many relationship.

{
  "custId": 123,
  "name": "storeAB",
  "type": "cust"
}

and

{
  "custId": "cust::123",
  "addId": 998,
  "dateStart": "01-01-2019",
  "type": "address"
}
{
  "custId": "cust::123",
  "addId": 555,
  "dateStart": "01-01-2017",
  "type": "address"
}

I need to join these two document types into a single customer doc. The doc should have all the cust attributes once and an array of the address document.
sample:

{
  "custId": 123,
  "name": "storeAB",
  "type": "cust",
    address: [
{
  "custId": "cust::123",
  "addId": 998,
  "dateStart": "01-01-2019",
  "type": "address"
},
{
  "custId": "cust::123",
  "addId": 555,
  "dateStart": "01-01-2017",
  "type": "address"
     }
  ]
}

How do i write a N1QL to make this happen? Thanks for your help.

I think I figured it out.

SELECT * 
FROM default cust
NEST default addressON KEY (address.custId) 
FOR cust

Also Checkout ANSI NEST Example 17 https://blog.couchbase.com/ansi-join-support-n1ql/