Invoking Cloud Development Resources
The current node enables access to and invocation of CloudBase resources, allowing access to the CloudBase database, invocation of cloud functions, or invocation of cloud storage methods.
Configuration Item Description
Cloud Development Connector
When using this node, it is necessary to first configure the Cloud Development Connector. By creating a new Cloud Development Connector, you can specify the CloudBase environment to connect to. Currently, it can connect to CloudBase environments in the Shanghai or Guangzhou regions, and requires specifying the CloudBase environment ID.
Executing Methods
By executing methods, specify the resources to be operated on and the operations.
Cloud Database
When selecting a cloud database, you can further choose a database collection and configure invocation commands.
For data invocation commands, you can refer to CloudBase's Database API. For example, the following command provides a read operation for the database:
db.collection("article")
.where({})
.get();
Invocation commands can be further edited to complete database read and write operations. Command editing supports expression-based parameter passing, allowing retrieval of outputs from other nodes, environment variables, and other information as command parameters.
When executing methods using a cloud database, the output returned after node execution is the output returned after the execution of the database invocation command.
Cloud Function
When selecting a cloud function, you can further choose the specific cloud function to invoke and configure the invocation parameters.
Available cloud functions are those already created in the specified environment.
The configured parameters will be passed as input arguments to the cloud function during invocation. Parameters support expression-based passing, allowing transmission of outputs from other nodes, environment variables, and other information within the arguments.
When the execution method is a cloud function, the output returned after node execution is the execution return content of the cloud function.
Cloud Storage
The execution method can configure cloud storage-related methods. After configuring the cloud storage method, you can further configure the method's input parameters.
For the specific structure or content of input parameters, you can refer to CloudBase's Cloud Storage API.
When the execution method is cloud storage, the output returned after node execution is the execution return content of the specific method.
Node Output
The return value from the specified invocation of the current node will be used as this node's output.
Debugging Instructions
When debugging this node, the corresponding method will be executed and its execution return will be retrieved.