Skip to content

Commit 420788b

Browse files
fix: unit test
1 parent 57b4152 commit 420788b

File tree

2 files changed

+42
-25
lines changed

2 files changed

+42
-25
lines changed

tests/unit/v1/testdata/query-invalid-operator.json

-25
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"tests": [
3+
{
4+
"description": "query: NOT_EQUAL operator in Where clause",
5+
"comment": "A Where clause that tests NOT_EQUAL operator in field filter.",
6+
"query": {
7+
"collPath": "projects/projectID/databases/(default)/documents/C",
8+
"clauses": [
9+
{
10+
"where": {
11+
"path": {
12+
"field": [
13+
"a"
14+
]
15+
},
16+
"op": "!=",
17+
"jsonValue": "4"
18+
}
19+
}
20+
],
21+
"query": {
22+
"from": [
23+
{
24+
"collectionId": "C"
25+
}
26+
],
27+
"where": {
28+
"fieldFilter": {
29+
"field": {
30+
"fieldPath": "a"
31+
},
32+
"op": "NOT_EQUAL",
33+
"value": {
34+
"integerValue": "4"
35+
}
36+
}
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)