Skip to content

Commit 7c07c30

Browse files
Merge pull request #121253 from Rageking8/update-cosmos-db-javascript-query-api
Update cosmos db javascript query api
2 parents 0b6c11c + 74e5887 commit 7c07c30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cosmos-db/nosql/javascript-query-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ In addition to issuing queries using the API for NoSQL in Azure Cosmos DB, the [
3232

3333
When included inside predicate and/or selector functions, the following JavaScript constructs get automatically optimized to run directly on Azure Cosmos DB indices:
3434

35-
- Simple operators: `=` `+` `-` `*` `/` `%` `|` `^` `&` `==` `!=` `===` `!===` `<` `>` `<=` `>=` `||` `&&` `<<` `>>` `>>>!` `~`
36-
- Literals, including the object literal: {}
35+
- Simple operators: `=` `+` `-` `*` `/` `%` `|` `^` `&` `==` `!=` `===` `!==` `<` `>` `<=` `>=` `||` `&&` `<<` `>>` `>>>` `~`
36+
- Literals, including the object literal: `{}`
3737
- var, return
3838

3939
The following JavaScript constructs do not get optimized for Azure Cosmos DB indices:
4040

41-
- Control flow (for example, if, for, while)
41+
- Control flow: `if` `for` `while`
4242
- Function calls
4343

4444
For more information, see the [Azure Cosmos DB Server Side JavaScript Documentation](https://github.com/Azure/azure-cosmosdb-js-server/).
4545

4646
## SQL to JavaScript cheat sheet
4747

48-
The following table presents various SQL queries and the corresponding JavaScript queries. As with SQL queries, properties (for example, item.id) are case-sensitive.
48+
The following table presents various SQL queries and the corresponding JavaScript queries. As with SQL queries, properties (for example, `item.id`) are case-sensitive.
4949

5050
> [!NOTE]
5151
> `__` (double-underscore) is an alias to `getContext().getCollection()` when using the JavaScript query API.

0 commit comments

Comments
 (0)