graphql-filter-java icon indicating copy to clipboard operation
graphql-filter-java copied to clipboard

Implicit Date conversion clashes with DateTime scalar

Open roele opened this issue 4 years ago • 3 comments

If DateTime scalar from graphql-java-extended-scalars is used which maps to the OffsetDateTime Java type the following exception is thrown.

org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [Thu Dec 03 01:00:00 CET 2020] did not match expected type [java.time.OffsetDateTime (n/a)]

Implicit Date conversion should be removed from FilterExpressionParser.

roele avatar Sep 21 '21 12:09 roele

Hi,

I'm facing the same issue as well. Is there any work-around for this bug?

jchristopherinc avatar Oct 27 '22 10:10 jchristopherinc

My workaround back then was to patch it with the following fix. https://github.com/intuit/graphql-filter-java/pull/17/files

roele avatar Oct 27 '22 11:10 roele

@jaiswalsk can you please take a look at the PR ☝🏽

jchristopherinc avatar Oct 27 '22 11:10 jchristopherinc