Changing text in node

do you know any way to get name or a text inside the node, like say a node at definition was called wait then where how can i find the word text , using diagram . please this must be simple

It depends on how you defined your template. Have you read https://gojs.net/latest/learn/graphObject.html ?