Core
Framework v2.x
2
Available since 2.8.0

Properties #

cluster #

This property is an instance of the BackendCluster class that allows to interact with cluster nodes.

TypeDescription
BackendCluster
BackendCluster instance

commit #

TypeDescription
string
Current GIT commit (if available)

Contains the current GIT commit hash if the application is run from a GIT repository.

The framework will try to go 3 level upper to find a valid GIT repository.

config #

This property is an instance of the BackendConfig class that allows to read or set the configuration values.

TypeDescription
BackendConfig
BackendConfig instance

See also the Configuration guide.

controller #

This property is an instance of the BackendController class that allows to use or register API controllers.

TypeDescription
BackendController
BackendController instance

See also the API Controllers guide.

hook #

This property is an instance of the BackendHook class that allows to register hooks.

TypeDescription
BackendHook
BackendHook instance

See also the Event System guide.

import #

This property is an instance of the BackendImport class that allows to import mappings and security configuration.

TypeDescription
BackendImport
BackendImport instance

log #

This property is an instance of the BackendLog class that allows to log messages using Kuzzle's internal logger.

TypeDescription
BackendLog
BackendLog instance

See also the Internal Logger guide.

name #

Application name.

TypeDescription
string
Application name

nodeId #

Cluster node identifier.

TypeDescription
string
Cluster node identifier

openApi #

This property is an instance of the BackendOpenApi class that allows to modify OpenAPI definition.

TypeDescription
JSONObject
OpenAPI default definition

pipe #

This property is an instance of the BackendPipe class that allows to register pipes.

TypeDescription
BackendPipe
BackendPipe instance

See also the Event System guide.

plugin #

This property is an instance of the BackendPlugin class that allows to add plugins to the application.

TypeDescription
BackendPlugin
BackendPlugin instance

See also the Plugins guide.

sdk #

This property is an instance of the EmbeddedSDK class that allows to interact with the Kuzzle API.

TypeDescription
EmbeddedSDK
EmbeddedSDK instance

See also the Embedded SDK guide.

storage #

This property is an instance of the BackendStorage class that allows to interact directly with Elasticsearch.

TypeDescription
BackendStorage
BackendStorage instance

See also the Data Storage guide.

subscription #

This property is an instance of the BackendSubscription class that allows to manage subscriptions to the realtime engine for a specific connection.

TypeDescription
BackendSubscription
BackendSubscription instance

See also the Realtime Engine guide.

vault #

This property is an instance of the BackendVault class that allows to use the secrets vault.

TypeDescription
BackendVault
BackendVault instance

See also the Secrets Vault guide.

version #

Application version. This value will be read from the package.json if available.

TypeDescription
string
Application version