OData Version 4.01 $filter parser for Spring Data MongoDB
<dependency>
<groupId>com.efindi</groupId>
<artifactId>smo-filter</artifactId>
<version>0.0.2-RELEASE</version>
</dependency>
implementation 'com.efindi:smo-filter:0.0.2-RELEASE'
This will throw an InvalidODataFormatException if the string input is not valid.
Filter mf = new Filter("LastName eq 'Smith' and Age gt 16 and LastUpdatedDate ge datetime'2017-12-28T21:48:28Z'");
Criteria criteria = mf.getCriteria();
javax.validation
public class RequestObject {
@ODataFilter
private String $filter;
}
- Spring Data MongoDB 3.4.x
This project is still in early alpha stage. We welcome any collaborator who is interested in working for this project.