Functions on objects (FOO)

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
  • Searching for object sets on demand
  • Modifying objects using Ontology edits

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:

If you have not yet chosen a language, review Feature support by language and TypeScript v1 compared to TypeScript v2.

Learn how to get started with functions on objects.