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 a2386a4 commit 7757b7aCopy full SHA for 7757b7a
README.md
@@ -341,6 +341,27 @@ correspondingly.
341
----------------------------
342
y > 0 , entry 0 +
343
344
+### parse\_mquery
345
+This function is transofrm MongoDB query to JsQuery query. Function get string
346
+like argument and return jsquery object.
347
+Example:
348
+MongoDB query:
349
+```
350
+select '{"a": {"b": 1 } }'::jsonb @@ parse_mquery('{ "a.b" : { $lte : 1 } }');
351
352
+Transformed to:
353
354
+select '{"a": {"b": 1 } }'::jsonb @@ 'a.b = 1';
355
356
+And return:
357
358
359
+ ?column?
360
+----------
361
+ t
362
+(1 row)
363
364
+
365
Contribution
366
------------
367
0 commit comments