Skip to main content

SELECT

CosmosDB NoSQL Plugin – Select Action

Summary (SEO Meta Description):
The Select Action of the CosmosDB NoSQL Plugin allows WeHub workflows to query and retrieve documents from Azure Cosmos DB using SQL-like syntax.
Ideal for building data-driven workflows that need fast, scalable NoSQL reads.


Overview

The Select Action enables WeHub to fetch data from a Cosmos DB container with powerful query options.
It supports partitioned queries, custom filters, ordering, and pagination, making it perfect for real-time applications.

Typical Use Cases:

  • Retrieve patient or customer records with complex filtering
  • Paginate through large datasets efficiently
  • Fetch real-time analytics data for dashboards
  • Integrate Cosmos DB data into downstream processing or reporting workflows

⚙️ Configuration

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure connection to Azure Cosmos DBConnection
Partition Key(Optional) Specify a partition key. If left blank, cross-partition query will be used.String
Container nameTarget Cosmos DB containerDropdown
ColumnsColumns (fields) to select (hint: container.name)String list
ConditionWHERE clause for filtering (hint: container.id=)String
OrderSQL ORDER BY clauseString
LimitMax number of records to returnNumber
OffsetNumber of records to skip before returning resultsNumber
Inputs (Manual)Define input parameters for dynamic queriesKey–Value pairs (Types: NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY)
OutputsChoose to define outputs manually or let WeHub infer from schemaManual / Truncate Fields
SchemaSelect or define the output schemaSchema

FAQ

Q: Can I query across multiple partitions?
A: Yes. Leave Partition Key empty to enable cross-partition queries.

Q: Does the action support parameterized queries?
A: Yes, you can define dynamic input parameters under Inputs (Manual).

Q: Are results automatically paginated?
A: You can use Limit and Offset to control pagination of large result sets.


Keywords: WeHub CosmosDB NoSQL Plugin, Select Action, Azure Cosmos DB Query, NoSQL Data Retrieval, Cross-Partition Query