After configuring your link type in the Ontology Manager to be many-to-many, you can use the .add()
method on your link property type to add all instances of the linked object type that should be associated with the new object.
Timestamp: March 18, 2024
The third-party application token must be given access to all the object types and backing datasets used for 'searchArounds'. Additionally, the projects of the 'searchAround' object types should also be added to the application scope.
Timestamp: March 11, 2024
Timestamp.now()
always in UTC? Can it be in another (local) timezone?It is always in UTC.
Timestamp: February 29, 2024
There is no single way to ensure a function isn't used anywhere in the platform. The best available option is to check the usage history in Ontology Manager. However, dependencies that have not executed the function in a very long time, or at all, may not be revealed by checking usage history.
Timestamp: April 10, 2024
Promises
in parallel without causing timeouts in my function?To handle a large number of Promises
in parallel without causing timeouts, you should:
getAsync()
and allAsync()
) for parallel link loading.Additionally, consider that there are enforced limits on function execution and a maximum of 10 concurrent fetches for limiting load on downstream services, except for link loading which is batched under the hood.
Timestamp: April 25, 2024
rid
within the same function?The rid
is assigned to objects when they are created, either from indexing a backing dataset or as part of an action, but not immediately within the function where the object is created. The changes to objects and links, including the assignment of rid
, are propagated after the function has finished executing.
Timestamp: April 16, 2024
No, there is no way to get the executing user's ID within a function without passing it as a parameter.
Timestamp: April 16, 2024
You can currently only write functions on objects on the master branch.
Timestamp: April 16, 2024
The following options are available to manage the visibility of functions:
To hide or delete a function, carry out the following steps in the code repository that contains the source of the function:
Timestamp: July 10, 2024
No, there is currently no support for streaming responses from LLM queries in Ontology functions, but the feature is actively being worked on.
Timestamp: June 17, 2024