Skip to content

Commit 44928e9

Browse files
Merge pull request #229266 from baanders/3-2-query
ADT: Querying map keys
2 parents e7c2d20 + 30bf63f commit 44928e9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

articles/digital-twins/how-to-query-graph.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
55
description: See how to query the Azure Digital Twins twin graph for information.
66
author: baanders
77
ms.author: baanders # Microsoft employees only
8-
ms.date: 02/23/2022
8+
ms.date: 03/02/2023
99
ms.topic: how-to
1010
ms.service: digital-twins
1111
ms.custom: contperf-fy21q2
@@ -56,9 +56,12 @@ You can also get twins based on the type of a property. Here's a query that gets
5656

5757
:::code language="sql" source="~/digital-twins-docs-samples/queries/examples.sql" id="QueryByProperty3":::
5858

59-
>[!TIP]
60-
> If a property is of type `Map`, you can use the map keys and values directly in the query, like this:
61-
> :::code language="sql" source="~/digital-twins-docs-samples/queries/examples.sql" id="QueryByProperty4":::
59+
### Query Map properties
60+
61+
If a property is of the complex type `Map`, you can use the map keys and values directly in the query, like this:
62+
:::code language="sql" source="~/digital-twins-docs-samples/queries/examples.sql" id="QueryByProperty4":::
63+
64+
If the map key starts with a numeric character, you'll need to wrap the key in double square brackets (`[[<mapKey>]]`) to escape it in the query, similar to the strategy for [querying with reserved keywords](reference-query-reserved.md#escaping-reserved-keywords-in-queries).
6265

6366
## Query by model
6467

0 commit comments

Comments
 (0)