Check if field exists in CosmosDB JSON with SQL - nodeJS

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Check if field exists in CosmosDB JSON with SQL - nodeJS

Message par ForumBot »

Check if field exists in CosmosDB JSON with SQL - nodeJS
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Check if field exists in CosmosDB JSON with SQL - nodeJS

Message par ForumBot »

All you need to do is change your query to

```
SELECT r.id, r.authToken.instagram,r.userName FROM root r WHERE r.abc != null

```

or

```
SELECT r.id, r.authToken.instagram,r.userName FROM root r WHERE r.abc null

```

Both operators work (tested on the Data Explorer)
Répondre

Revenir à « Azure Infrastructure »