Functions in Foundry natively support accessing and modifying data from objects and links in the Ontology. After defining object and link types in the Ontology, you can import these types into a functions repository to have code bindings automatically generated. These code bindings include support for:
Passing object and object set types into a function as parameters
Because of this native support for the Ontology, functions in Foundry go far beyond commonly used Functions-as-a-Service (FaaS) platforms by providing native support for data storage, retrieval, and modification—all subject to Foundry's guarantees for data security, lineage, and transparency.
The term "functions on objects" (sometimes referred to as "FOO") is used loosely to refer to functions that read object data, either as a parameter or using an object search, but there is no formal notion of a "function on objects" in Foundry as being distinct from any other function.
Object APIs by language
The API you use to read objects depends on the language your function is written in:
TypeScript v1 functions search objects with the Objects.search() API exported from the @foundry/ontology-api package. Review Object sets (TSv1) and Objects and links (TSv1).