Protected Optional _configTrait instance configuration.
Protected _globalWhether this is a global (not bound to any specific schema item) trait instance.
Protected Optional _typeTrait type.
Protected Readonly accessProtected Readonly dataProtected Readonly graphRest ...__namedParameters: [datasourceWrapper: DataSourceWrapper, data: TraitDataObject<any, any, Promise<any>>]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.
This method is used to retrieve additions to the GraphQL schema and to register the callbacks associated to the Vertex.
TODO: Remove resolvers assignment; this hook should only return a schema string. Resolvers (or 'handlers' should be defined and retrieved via separate hook).
Rest ...__namedParameters: [schemaString: string, source: string, relationship?: null | object]Configuration setter.
The new configuration.
Protected statusHelper 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 Access Trait provides an extra GraphQL Query field for performing the entity access check.
Usage: