Protected Optional _configTrait instance configuration.
Private Optional _dataProtected _dataPrivate Optional _edgesProtected _globalWhether this is a global (not bound to any specific schema item) trait instance.
Private Optional _objectsProtected _schemaPrivate Optional _targetPrivate Optional _targetPrivate Optional _targetProtected Optional _typeTrait type.
Private Optional _typePrivate Optional _typesHelper method which initializes/returns DataObjectStorage object.
This function is used to validate the target and add the defined edge between the current entity and the target.
This function is used to retrieve the argument property and checks if a sub property has been defined and return that in a list for each defined property.
This function is used to retrieve the argument property and checks if a sub property has been defined and return that.
Optional subProperty: stringAttaches Trait callbacks to schema item hooks.
This function is used to get a list of defined edges that exist between the source entity and the target entity type.
Makes this Trait instance global.
After the Vertex has been created make sure to attach it to the schema
post-update hook implementation. This function checks for the specified type, which items have been added or removed and processes them accordingly.
This function is the preCreate and will be called before the entity is created, to prevent the preUpdate and postUpdate being called on a create (which can happen due to interaction with other traits).
This method is triggered when a trait callback has been activated
This is the name of the callback function to call.
References to the Graph Hanlder
Request data passed along as part of the request.
This function is used to check that a defined edge exists between the source entity and the target exists and to then delete the edge.
Configuration setter.
The new configuration.
Helper method for wrapping legacy Kosmos traits callbacks.
TODO: Remove this method once all Traits are converted.
Optional callbackName: stringOptional callback name; passing this parameter will additionally wrap the callback into legacy process().
Static traitGenerated using TypeDoc
The DataObjectsTrait is used to enable a specified property of a vertex to to be parsed for html objects, if the html objects have been defined as part of the trait configuration (see below) an edge will be added to the targeted vertex, below is an example of a HTML Object that can be parsed by this Trait and defines two data objects that can be managed.
Example HTML:
Usage: