More dynamic knowledge graph templates with more supported parameter types

Vertex template parameters should accept a collection of the supported data types for passing as input to custom Search Around functions.

Today, in order to dynamically generate knowledge graphs of varying size/purpose. I pass a transforming String delimited variable from Workshop to the the Vertex template, from the Vertex template to the custom TypeScript function where the string is split and processed.

Directly supporting collection parameters types allows for more dynamic graph generating and ultimately eliminating a need for redundant template creation for an infinite number of use cases.

We’ve added “List” parameter type, that will allow you to pass in list/array parameters from Workshop, through templates and into Search Around functions.

1 Like

Perfect! Thanks for the addition

This fails at the function level. Please review.

Do you have more details on where exactly its failing? Any error messages? Does it work when you call the Search Around function directly from the graph and supply the list parameter?

The generic functionality works for me on a function of the signature:

    @Function()
    public async raceResults(race: F1Race, positions: Integer[]): Promise<IGraphSearchAroundResultV1> {
        ...
    }

that’s wired into a template with a Integer Array parameter: