spring-graphql
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.
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.
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.
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.