You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/query/computed-properties.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,25 +225,28 @@ Updating computed properties on an existing container is not supported in Python
225
225
> [!TIP]
226
226
> Every time you update container properties, the old values are overwritten. If you have existing computed properties and want to add new ones, be sure that you add both new and existing computed properties to the collection.
227
227
228
-
### Create computed properties using azure data explorer in azure portal
229
-
230
-
You can create computed properties in azure data explorer in azure portal also.
228
+
### Create computed properties by using the Data Explorer
231
229
232
-
- Click the *Scale & Settings* under the container name.
233
-
- Click the *computed properties* tab.
234
-
- Create and define the compute property. Below is the sample computed property.
230
+
You can use the Data Explorer to create a computed property for a container.
235
231
236
-
```json
237
-
[
238
-
{
239
-
"name": "cp_lowerName",
240
-
"query": "SELECT VALUE LOWER(c.name) FROM c"
241
-
}
242
-
]
243
-
```
244
-
- Click *Save* to save the computed property.
232
+
1. Open your existing container in the Data Explorer.
233
+
234
+
1. Navigate to the **Settings** section for you container. Then, navigate to the **Computed Properties* sub-section.
235
+
236
+
1. Edit the computed properties definition JSON for your container. In this example, this JSON is used to define a computed property to split the `SKU` string for a retail product using the `-` delimeter.
237
+
238
+
```json
239
+
[
240
+
{
241
+
"name": "cp_splitSku",
242
+
"query": "SELECT VALUE StringSplit(p.sku, \"-\") FROM products p"
243
+
}
244
+
]
245
+
```
246
+
247
+
:::image type="content" source="media/computed-properties/data-explorer.png" alt-text="Screenshot of the computed properties JSON editor in the Data Explorer interface.":::
0 commit comments