Closed jaulz closed 9 months ago
While doing the mentioned renaming above, I noticed that it actually doesn't work like the way I thought. There is no filter applied eventually 🤔
Or is there any nice way at the moment to already achieve it?
Nope...
There is no filter applied eventually 🤔
Strange. (1) Which version of the package are you using? (2) Do you see @rename
in the final schema?
ps: You can also try https://github.com/itsgoingd/clockwork / https://laravel.com/docs/10.x/telescope to see queries.
I am using 4.5.0 and actually just upgraded. However, I think I found where the value is lost:
The input is still country_code
but the type's property is countryCode
and hence the arguments are empty and the filter is not applied:
Maybe you can create a small repo with the error? It will be very helpful for debug.
I think I found where the value is lost:
Yep. I can reproduce it, but not sure how to fix yet. The bug extracted to #88.
In upcoming v6 will be possible to define BuilderPropertyResolver
and implement any conversion you want 😃
// AppProvider
$this->app->bind(
LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\BuilderPropertyResolver::class,
MyBuilderPropertyResolver::class,
);
It would be great if there would be a way to automatically rename fields in the type that is used with the
@searchBy
directive to be in snake case. For example I would like to leave out the@rename
column here:Or is there any nice way at the moment to already achieve it?