Creating a View
A view is a queryable object whose contents are defined by aggregation pipelines on other collections or views. This section describes how to create a view.
Procedure
- Log in to the DAS console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
You can also click Go to Development Tool on the overview page.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose Database Management.
- On the displayed Objects tab, choose Views and click Create View.
- On the displayed page, enter the view name and collection name.
Figure 1 Creating a view
- Click Add Pipeline Stage. In the displayed dialog box, select an operator and enter an expression.
Figure 2 Adding a pipeline stage
The aggregation pipeline you create appears in the list, and you can edit, delete, move up, or move down it.
Figure 3 Pipeline management
- On the Collation tab, click Custom Collation and set collation rules as needed.
- After setting the view information, click Save.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot