Node Definition
Last updated
Was this helpful?
Last updated
Was this helpful?
For the front-end to display the newly created node, a node definition has to be created and submitted it to the front-end's node database.
Create node definition
type; should be set to native
data contains general information about the node
inputs and outputs !!! Note: the node definition uses targets to describe inputs, and sources to describe outputs. Remnants of front-end library which uses the point-of-view of a directional edge, going from a source to a target.
optional: to accept static inputs on the UI, you need to define a form schema.
We use the JSON Schema to define the form.
build a form here: https://rjsf-team.github.io/react-jsonschema-form/ or here
both JSONSchema and UISchema are needed
Commit node definition to our repo
POST node definition to DB
body should be the node definition JSON