Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 538 Bytes

combinators.md

File metadata and controls

27 lines (21 loc) · 538 Bytes

Wrap Combinators

Use aliases method to auto select combinator

Is possible to use these aliases to omit operator frmo jsonQuery.

  • .or
  • .and
  • .orFiltering
  • .andFiltering
var jsonQuery = {
    'relation.nick': '@sensorario',
    'foo.bar.name': 'Simone'
};
var query = new QueryQl()
query.orFiltering(jsonQuery);

The query generated is the following:

'rel=relation,foo,bar'
+ '&filtering_or[_embedded.relation.nick]=@sensorario'
+ '&filtering_or[_embedded.foo.bar.name]=Simone'