Private _additionalProtected Optional _configTrait instance configuration.
Protected _dataPrivate _depthProtected _globalWhether this is a global (not bound to any specific schema item) trait instance.
Protected _graphqlPrivate _parentsProtected _schemaProtected Optional _typeTrait type.
This method is used to get the vertex's Ancestors.
Rest ...__namedParameters: [datasourceWrapper: DataSourceWrapper, data: TraitDataObject<any, any, Promise<any>>]This functions returns the hierarchy of ancestors for a given vertex.
The hierarchy array of ancestors.
The user context
The id of the current vertex
Attaches Trait callbacks to schema item hooks.
Makes this Trait instance global.
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.
AncestorTrait config setter.
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 base Trait class.
Any core Kosmos or custom application traits must inherit this class and must declare it's own configuration type extending TraitConfigBase interface.