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: https://gojs.net/latest/intro/validation.html.
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: https://gojs.net/latest/samples/records.html and https://gojs.net/latest/samples/selectableFields.html. Or a much fancier case: https://gojs.net/latest/samples/treeMapper.html