Query Functions in typescript

image

Does anyone have a document or code snippet for using Query Functions in a TypeScript function?

There was an update, but I cannot find the document in the Foundry manual, only the query decorator for external resources.

My purpose is to call AIP logic in TypeScript.

I can import AIP logic but cannot find a way to use it in TypeScript.

Your code should look something like this:

import { Queries } from '@foundry/ontology-api';

@Function()
public useQuery () : string {
const output = Queries.<functionApiName>({arg1_name: arg1_value, arg2 ....})
...

Thank you. :grinning: I’ll use of it well