Skip to content

OR statement in URL query string #12

@sudhish-ps

Description

@sudhish-ps

Need to support OR statement in REST API, and to build right query string for that.
In some business case we have to filter the document with OR condition like below for e.g.;

From employee
Filter position == 'Manager' OR age >= 50

How to generate such queries with the parser and how to define such condition in query string ?.
Currently multiple query parameters specified in the query string is generating with AND condition only, but definitely there is need of OR also. However we can specify this condition as filter like this
{ $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } but need is to simplify this in standard query format.
Some thing like ?position=Manager&!age>=50 (where ! internally converts to OR).

Any option available?.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions