Skip to content

Commit eba318f

Browse files
authored
Update README.md
1 parent b70cf0f commit eba318f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,27 @@ correspondingly.
340340
gin_debug_query_path_value
341341
----------------------------
342342
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+
select '{"a": {"b": 1 } }'::jsonb @@ 'a.b = 1';
359+
?column?
360+
----------
361+
t
362+
(1 row)
363+
```
343364

344365
Contribution
345366
------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy