You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: ability to attach custom attributes to field definitions. #1671
Hey, I'm writing custom Executor, optimized for my needs (basically I need per coordinate cache) - so my idea is to attach custom cache resolver which will be called prior original one to check from cache. The issue is that it's very hard to do that - because I need to fork basically whole lib - it would be awesome if it's possible to attach custom attributes to field definition so I can check them later in my custom Executor.
Or even better - if we can incorporate that cache into ReferenceExecutor ?
Perhaps you can propose a pull request to fix 1.? And in regards to 2., strong typing won't be possible either way - you can ignore PHPStan errors though.
Activity
spawnia commentedon Feb 17, 2025
You can, the
array $configpassed in\GraphQL\Type\Definition\FieldDefinition::__constructis stored in a public property unchanged.I don't really understand what else you are describing.
Warxcell commentedon Feb 17, 2025
Its fine, but there are 2 issues
spawnia commentedon Feb 17, 2025
Perhaps you can propose a pull request to fix 1.? And in regards to 2., strong typing won't be possible either way - you can ignore PHPStan errors though.