graphql-filter-java
graphql-filter-java copied to clipboard
Fix LocalDateTime bug
1. Issue Link: https://github.com/intuit/graphql-filter-java/issues/29
2. Brief explanation of a change: Removing LocalDateTime from the parser as it converts to a Date format that will not work with SQL or JPA expressions
3. Will it break existing clients and code in production? No.
I have a similar situation:
- a graphql field
endDate: DateTime - a filter I would like to add as an input:
input BookFilter {
endDate: DateTimeExpression
}
input input DateTimeExpression {
between: [DateTime!]
}
- a database field
end_date datetime null, - the Java object has a field
@Column(name = "end_date")
private LocalDateTime endDate;
The query filter translation current changes the input DateTime to a format which SQL (MySQL) cannot use.