Create link between Class diagram property and node

Is it possible to create a link between a node in a class diagram and a property of a different node. I need to create this relation if the property is of certain type

Are you asking about limiting what the user can draw? If so, please read about linking validation: GoJS Validation -- Northwoods Software.

Or are you asking about how to create a link that connects with a particular field? If so, you’ll need to identify each one (unique within the node) and declare some element in the node to be a port with that identifier. See, for example: Record Mapper and Mapping Selectable Fields of Records. Or a much fancier case: GoJS Tree Mapper