Update node with new relationship using spring neo4j

Hi,

Im using neo4j spring And I was wondering on how to efficiently update an existing node with a new relationship.
Currently Im doing the following:
var mydto = repository.findById(theid);
var newrelationship = new SomeRelationship();
newrelationship.setStart(mydto);
newrelationship.setEnd(newNode);
repository.save(myDto);

This kind of works, however what happens when that Node has millions of SomeRelationship connected? To me it doesn't seem efficient to first retrieve those millions inside the application and then save back to neo4j? Should I write a create query on the repository? What is the best practise here?

Regards,
Iskandar