Skip to content

Commit 09b8347

Browse files
authored
Merge pull request #102975 from ash2017/patch-2
Update iot-hub-devguide-routing-query-syntax.md
2 parents 3c37dbb + 3becd0a commit 09b8347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/iot-hub/iot-hub-devguide-routing-query-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ $body.Weather.Temperature = 50 AND processingPath = 'hot'
158158

159159
## Message routing query based on device twin
160160

161-
Message routing enables you to query on [Device Twin](iot-hub-devguide-device-twins.md) tags and properties, which are JSON objects. Querying on module twin is not supported. A sample of Device Twin tags and properties is shown below.
161+
Message routing enables you to query on [Device Twin](iot-hub-devguide-device-twins.md) tags and properties, which are JSON objects. Querying on module twin is also supported. A sample of Device Twin tags and properties is shown below.
162162

163163
```JSON
164164
{
@@ -191,7 +191,7 @@ Message routing enables you to query on [Device Twin](iot-hub-devguide-device-tw
191191

192192
### Query expressions
193193

194-
A query on message body needs to be prefixed with the `$twin`. Your query expression can also combine a twin tag or property reference with a body reference, message system properties, and message application properties reference. We recommend using unique names in tags and properties as the query is not case-sensitive. Also refrain from using `twin`, `$twin`, `body`, or `$body`, as a property names. For example, the following are all valid query expressions:
194+
A query on message body needs to be prefixed with the `$twin`. Your query expression can also combine a twin tag or property reference with a body reference, message system properties, and message application properties reference. We recommend using unique names in tags and properties as the query is not case-sensitive. This applies to both device twins and module twins. Also refrain from using `twin`, `$twin`, `body`, or `$body`, as a property names. For example, the following are all valid query expressions:
195195

196196
```sql
197197
$twin.properties.desired.telemetryConfig.sendFrequency = '5m'

0 commit comments

Comments
 (0)