How to find link for key

i m using find part for key function it returns a node if “key” is also used for both nodes and link how to get just the link with a certain key?

I suppose we should implement a Diagram.findLinkForKey method…

But you can call GraphLinksModel | GoJS API followed by Diagram | GoJS API.

This is implemented in v2.1.