Skip to main content

How to Use Data Models

How to Use the Data Model API in APIs​

Step 1: Find the APIs Module​

Open the CloudBase console and find the data model API feature in the APIs module.

Example Image

Step 2: Create APIs​

Click the "Create API" button, select the data model API type, and configure relevant parameters.

Create APIs

Step 3: Use APIs​

Call the created APIs in the code to perform CRUD operations on the data model.

Using APIs

For detailed usage, please refer to Data Model CRUD

How to Use the Data Model API in Visual Low-Code​

Step 1: Find Visual Low-Code​

Go to the CloudBase console and select the "Low-Code Development" module.

Find Visual Low-Code

Step 2: Edit the Application​

Select the target application and click "Edit" to enter the development interface.

Edit Application

Step 3: Create a query​

In the data source panel, click the "New Query" button.

Create Query

Step 4: Create a JS Query​

Select the "JS Query" type and write data model operation code.

Create JS Query

Step 5: Use JS Query​

Bind the created JS query in page components to enable data display and interaction.

Use JS Query

For detailed usage, please refer to Data Model CRUD