Skip to main content

Hey, does anyone know how to create an edge between two nodes using cdf toolkit? I am specifically looking to figure out:

  • How does the yaml need to be structured
  • does the file need a special name?
  • does the file need to be in a special folder? 

@Eirik Rathe This is currently not supported in Toolkit.

The reasoning is that Toolkit is intended for configuration of resources, and not data. For example, we support setting up data models, workflows, authentication etc, but have limited support for uploading datapoints, events, and so on.

We support node as these are often used as configuration, while do not support edges as they are typically only used as part of data. 

What is your use case for wanting to use Toolkit to populate edges?


I see. We have a data model that has a set of “framework data” that we instantiate it with, which will be the same for all cdf instances as it is part of a standard. in our data model one of the properties are on the form
someprop: panother_type]

which, as far as I know has to be instantiated with edges since we can’t pass a list of direct references. I was really hoping to use cdf toolkit to set up the model in a new environment as well as populate it with static framework data, without having to setup transforms etc.


@Eirik Rathe Thank you for explaining. We will add support for edges in Toolkit. It will be introduced with an alpha flag within the next few weeks, and be in the stable `0.4.0` version that will be sometime next year.


Great, thanks!


@Eirik Rathe Supported in `0.3.17` behind an alpha flag

 

You have to set 

```

edges = true

```

In your cdf.toml file


Reply