skills

skills.apply

apply(result: SkillResult): Promise<void>

Apply a SkillResult to the graph by adding the contained nodes and edges via NodesApi and EdgesApi.

Each call is recorded as one or two undoable commands (one "AddNodes" and one "AddEdges"). No-ops for empty arrays.

resultSkillResultThe skill result whose nodes and edges should be added.

Returns: Promise<void>

Example

const result = await api.skills.execute("csv", { file });
if (result) await api.skills.apply(result);