Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitOS94 authored Jul 16, 2017
1 parent b70cf0f commit eba318f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,27 @@ correspondingly.
gin_debug_query_path_value
----------------------------
y > 0 , entry 0 +
### parse\_mquery
This function is transofrm MongoDB query to JsQuery query. Function get string
like argument and return jsquery object.
Example:
MongoDB query:
```
select '{"a": {"b": 1 } }'::jsonb @@ parse_mquery('{ "a.b" : { $lte : 1 } }');
```
Transformed to:
```
select '{"a": {"b": 1 } }'::jsonb @@ 'a.b = 1';
```
And return:
```
select '{"a": {"b": 1 } }'::jsonb @@ 'a.b = 1';
?column?
----------
t
(1 row)
```

Contribution
------------
Expand Down

0 comments on commit eba318f

Please sign in to comment.