Functions enable code authors to write logic that can be executed quickly in operational contexts, such as dashboards and applications designed to empower decision-making processes. This logic is executed on the server side in an isolated environment.
Notably, functions include first-class support for authoring logic based on the Ontology. This includes support for reading the properties of various object types, traversing links, and flexibly making Ontology edits.
Common use cases for functions include:
The languages supported by functions are TypeScript ↗ and Python [Beta]↗.
For more information on feature support by language and choosing a language or language version, refer to the language feature support specifications.
To get started using functions in Foundry, we recommend the following tutorials:
Try our "Speedrun: Your first Ontology function" course ↗ on learn.palantir.com.