spring-graphql icon indicating copy to clipboard operation
spring-graphql copied to clipboard

The query functionality in QuerydslDataFetcher is currently limited to exact queries. Would it be possible to add a new feature for fuzzy queries? I can provide a pull request.

Open zeng-alt opened this issue 9 months ago • 3 comments

zeng-alt avatar Feb 20 '25 13:02 zeng-alt

Querydsl can be customized by providing a QuerydslBinderCustomizer to customize bindings. By default Querydsl queries are mapped to equals comparison. Our Spring Data documentation contains an example for customization. Let us know whether that helps.

mp911de avatar Mar 13 '25 09:03 mp911de

Customizing QuerydslBinderCustomizer for each entity is quite cumbersome since I have to define it individually for every entity. However, like queries are more common than equals queries. I hope to add a Fetcher to support like queries.

zeng-alt avatar Mar 14 '25 02:03 zeng-alt

Or, it would be great to add more powerful functionality by enabling conditional queries that generate different conditions for different data types. For example, similar to https://querybuilder.js.org/, where GraphQL might not need condition groups but does require rules.

zeng-alt avatar Mar 14 '25 02:03 zeng-alt