Invoking Cloud Development Resources
The current node implements access to and invocation of cloud development resources. It can access the cloud development database, invoke cloud functions, or invoke cloud storage-related methods.
Configuration Item Instructions
Cloud Development Connector
When using this node, you need to first configure the Cloud Development Connector. By creating a new Cloud Development Connector, you can specify the cloud development environment to connect to. Currently, it can connect to cloud development environments in the Shanghai or Guangzhou regions, while requiring the specification of the cloud development Environment ID.
Execute Method
By executing the method, specify the resources to be operated and the corresponding methods.
Database
When selecting a database, you can further select the database collection and configure invocation commands.
For the data invocation commands, you can refer to Cloud Development's Database API. For example, the following command provides a read operation on the database:
db.collection("article")
.where({})
.get();
The invocation command can be further edited to complete database read/write operations. Additionally, the command editor supports expression-based parameter passing, allowing information such as outputs from other nodes or environment variables to be obtained and used as command arguments.
When the execution method uses a database, the return output after node execution is the return output after the database invocation command is executed.
Cloud Function
When selecting a cloud function, you can further select the cloud function to be invoked and configure the invocation parameters.
The selectable cloud functions are those already created in the specified environment.
The configured parameters will be passed as input parameters to the cloud function during invocation. The parameters support expression-based passing, allowing information such as outputs from other nodes or environment variables to be included in the parameters.
When the execution method is a cloud function, the return output after node execution is the returned content from the cloud function execution.
Cloud Storage
The execution method can be configured to use cloud storage 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 return output after node execution is the returned content from the execution of the specific method.
Node Output
The execution return of the specified invocation for the current node will be used as the output of this node.
Debugging Instructions
During debugging of this node, the corresponding method will be executed and the execution return will be obtained.