Using [Tree View JS] Dynamicaly

For the [Tree View JS], can I get the values selected to generate a Query with these?

Can I dynamically generate the contents of the Model (model.nodeDataArray), for example through a Query (MySQL) ?.

Thanks.

Yes, you can certainly generate the JSON-formatted text that would represent a GoJS Model, including an Array of node data Objects. Those results can certainly be produced from information that you ask for in a database query.

GoJS is a purely presentational component. GoJS makes no requirements on how the server persists diagram models, nor on how the front-end should communicate with the server.