objection-find-query
Version:
query paramter constructor for objection-find
21 lines (20 loc) • 429 B
JSON
{
"simple": {
"where[name:eq]": "hello"
},
"composite": {
"where[created_at:lt]": "2016-09-18T03:38:54.366Z",
"where[rating:gt]": 5
},
"multiple_sibling": {
"where[created_at:gt]": "2016-09-18T03:38:54.366Z",
"where[rating:gt]": 2,
"where[rating:lt]": 5
},
"array": {
"where[director_id:in]": [23, 32, 3]
},
"nested": {
"where[movie.director.name:eq]": "Christopher Nolan"
}
}