GraphLinksModel Change from and to of link template

Hi Team,
I want to reduce the JSON size sent from server to client. Basically, I would want to change “from” and “to” on JSON to “f” and “t” respectively for my linkdataArray.

Pls help me on how to set it properly.

Sure, you can change all of the property names used by Model and GraphLinksModel by setting the model properties whose names end in “…Property”.

For example, you could set GraphLinksModel | GoJS API to “f”.

Just remember to set those …Property properties before setting Model.nodeDataArray or GraphLinksModel.linkDataArray.