Cloud API Overview > @adpt/cloud > nodejs > NodeServiceProps > connectTo
nodejs.NodeServiceProps.connectTo property
Handles for services that this component connects to.
Signature:
connectTo: Handle<ConnectToInstance> | Handle<ConnectToInstance>[];
Remarks
The referenced service components must implement the ConnectToInstance interface. The Node Container will be started with the combined set of environment variables that are provided by all of the referenced components' connectEnv methods.
In case of environment variable naming conflicts among those in from the connectTo prop, the value from the handle with the highest index in the connectTo array will take precedence. In case of naming conflicts between connectTo and env, the value in env will take precedence.