We are looking forward to use TG Cloud instance for our solution. As part of our solution we use custom C++ UDF’s which internally make API calls to external API’s . Can you please let me know how can I deploy such C++ Functions to TG Cloud instance and how to do network configuration in Cloud instances for inbound/outbound traffic ?
Hi @kapilsaini this is a great question. As of now, there isn’t a “best way”. There is a way.
- You need to export your solution
- Unzip the tar file
- Unzip template > ExportedGraph
- Make edits directly to
Query UDFs should be defined in C++ in the
ExprFunctions.hpp file located at
<tigergraph.root.dir>/app/<VERSION_NUM>/dev/gdk/gsql/src/QueryUdf/ . Replace
<VERSION_NUM> with the version number of the TigerGraph instance running on your machine https://docs.tigergraph.com/dev/gsql-ref/querying/operators-functions-and-expressions#query-user-defined-functions
- Zip up ExportedGraph
- tar your full solution
- Import Existing Solution back