haciendaio / hacienda

Hacienda is the new shiny open source content service - built in Manchester, UK
GNU Affero General Public License v3.0
73 stars 10 forks source link

$filter does not work with 'or' #9

Closed benearlam closed 9 years ago

benearlam commented 9 years ago

FilterQueryOption does not implement 'or', it only implements 'and'.

We would like to perform a query like:

https://content-service?$filter=uuid eq 'uuid-1' or eq 'uuid-2'

mmircea16 commented 9 years ago

+1 Good point! That should easy to implement!

mmircea16 commented 9 years ago

Implemented here: https://github.com/www-thoughtworks-com/hacienda/commit/ff29b618f73a3bf8cb8bbbf21fdd6f3f0a49b6d5