Protected Optional _configTrait instance configuration.
Protected _globalWhether this is a global (not bound to any specific schema item) trait instance.
Protected Optional _typeTrait type.
Private dataPrivate entityPrivate graphqlPrivate searchHelper function for generating field resolvers.
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.
EdgeCountTrait config setter
This configuration object
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
EdgeCountTrait computes the count of edges to/from a vertex and stores the result as a property on the vertex.
The value of the computed property will also be indexed for Search.
! The trait has limitations - you can check them out here https://github.com/invotra/kosmos/pull/1926.
Usage: