We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2964b commit 37d5599Copy full SHA for 37d5599
filter/converter_test.go
@@ -225,13 +225,21 @@ func TestConverter_Convert(t *testing.T) {
225
fmt.Errorf("$exists operator not supported on non-nested jsonb columns"),
226
},
227
{
228
- "$exists jsonb column",
+ "not $exists jsonb column",
229
filter.WithNestedJSONB("meta"),
230
`{"name": {"$exists": false}}`,
231
`(NOT jsonb_path_match(meta, 'exists($.name)'))`,
232
nil,
233
234
235
+ {
236
+ "$exists jsonb column",
237
+ filter.WithNestedJSONB("meta"),
238
+ `{"name": {"$exists": true}}`,
239
+ `(jsonb_path_match(meta, 'exists($.name)'))`,
240
+ nil,
241
242
+ },
243
}
244
245
for _, tt := range tests {
0 commit comments