Get link Data when LinkDrawn Diagram event

I have the following:

LinkDrawn: getLinkData

function getLinkData(e) {
console.log(e.subject.fromNode.data, e.subject.toNode.data )
console.log(e.subject.toNode.data)

    }

However it is not showing me the link data array. Am I using the wrong diagram event method or the incorrect property within my named function getLinkData() ?

If you are using a GraphLinksModel, then e.subject.data should evaluate to the link data in the model of the newly drawn link.

thanks. I literally just figured it out. Had to read :).