Help Center > > User Guide> DDS DB Instance Management (Development Tool)> Database Management> Collection Management> Opening a Collection

Opening a Collection

Updated at: Jun 09, 2021 GMT+08:00

Prerequisites

You have logged in to a DDS DB instance, created a database, and created a collection in the database.

Procedure

  1. On the top menu bar, choose Database Management.
  2. On the displayed Objects tab page, choose Collections, locate the target collection, and click Open Collection in the Operation column.
  3. Set parameters Query, Projection, Sort, Limit, and Skip to query the documents in the current collection.

    On the JSON tab page, view the filtered documents. To facilitate viewing, DAS allows you to view the documents in Table and Tree mode.

    Figure 1 Opening a collection
    • Query: uses the query operator to specify the filter.
    • Projection: specifies the fields that matched with the query filter in the document to return.
    • Sort: defines the sorting order.
    • Limit: specifies the maximum number of documents that can be returned.
    • Skip: specifies the number of skipped documents.

  4. Click Create Document. On the displayed page, enter a valid JSON file and click Save.

    Figure 2 Creating a document

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel