Updated on 2023-12-13 GMT+08:00

Opening a Collection

This section describes how to view details about documents in a collection and create or delete documents on the DAS console.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose Database Management.
  7. On the displayed Objects tab page, choose Collections, locate the target collection, and click Open Collection in the Operation column.
  8. On the displayed page, you can perform the following operations:

    • Set parameters Query, Projection, Sort, Limit, and Skip to query the documents in the current collection.
      Table 1 Parameter description

      Parameter

      Description

      Query

      Uses a query operator to specify the filter.

      Projection

      Specifies fields that matched with the query filter in the document to return.

      Sort

      Defines the sorting rule.

      Limit

      Specifies the maximum number of documents that can be returned.

      Skip

      Specifies the number of skipped documents.

    • On the JSON tab page, view filtered documents.
    • To facilitate viewing, DAS allows you to view the documents in Table and Tree mode. You can view text files on the Tree and Table tab pages.
      Figure 1 Opening a collection
    • You can create, delete, and view documents.