| { | |
| "tests": [ | |
| { | |
| "description": "query: a Where clause comparing to null", | |
| "comment": "A Where clause that tests for equality with null results in a unary filter.", | |
| "query": { | |
| "collPath": "projects/projectID/databases/(default)/documents/C", | |
| "clauses": [ | |
| { | |
| "where": { | |
| "path": { | |
| "field": [ | |
| "a" | |
| ] | |
| }, | |
| "op": "==", | |
| "jsonValue": "null" | |
| } | |
| } | |
| ], | |
| "query": { | |
| "from": [ | |
| { | |
| "collectionId": "C" | |
| } | |
| ], | |
| "where": { | |
| "unaryFilter": { | |
| "op": "IS_NULL", | |
| "field": { | |
| "fieldPath": "a" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } |