Read configuration files (TOML) into an entity instance.
Name | Properties | Data Type | Socket Type |
config_file | filename | string | none |
| configuration | object | output |
Platform | Compatibility |
Linux | ✓ |
MacOS | ✓ |
Windows | ✓ |
mutation {
instances {
entities {
create(
type: "config_file"
id: "aed6c9b0-e495-4423-baeb-5597b66416f4"
properties: [
{
name: "filename"
value: "config/plugins.toml"
}
]
) {
id
type {
name
}
properties(
names: [
"filename"
"configuration"
]
) {
name
value
}
}
}
}
}
query getAllConfigs {
instances {
entities(type: "config_file") {
id
label
description
properties {
name
value
}
}
}
}
By triggering the property `filename' the configuration file will be read again:
mutation reloadPluginsConfig {
instances {
entities {
update(
id: "aed6c9b0-e495-4423-baeb-5597b66416f4",
properties: [
{
name: "filename",
value: "config/plugins.toml"
}
]
) {
id
type {
name
}
properties {
name
value
}
}
}
}
}