Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for not-in and not-eq query operators #202

Merged
merged 10 commits into from Oct 21, 2020
25 changes: 0 additions & 25 deletions tests/unit/v1/testdata/query-invalid-operator.json

This file was deleted.

42 changes: 42 additions & 0 deletions tests/unit/v1/testdata/query-notequal-operator.json
@@ -0,0 +1,42 @@
{
"tests": [
{
"description": "query: NOT_EQUAL operator in Where clause",
"comment": "A Where clause that tests NOT_EQUAL operator in field filter.",
"query": {
"collPath": "projects/projectID/databases/(default)/documents/C",
"clauses": [
{
"where": {
"path": {
"field": [
"a"
]
},
"op": "!=",
"jsonValue": "4"
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"where": {
"fieldFilter": {
"field": {
"fieldPath": "a"
},
"op": "NOT_EQUAL",
"value": {
"integerValue": "4"
}
}
}
}
}
}
]
}