File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
backend/src/main/java/club/devcord/devmarkt/graphql Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1616
1717package club .devcord .devmarkt .graphql ;
1818
19- import graphql .execution .instrumentation .SimpleInstrumentation ;
19+ import graphql .execution .instrumentation .Instrumentation ;
20+ import graphql .execution .instrumentation .InstrumentationState ;
2021import graphql .execution .instrumentation .parameters .InstrumentationFieldFetchParameters ;
2122import graphql .schema .DataFetcher ;
2223import jakarta .inject .Singleton ;
24+ import org .jetbrains .annotations .NotNull ;
2325
2426@ Singleton
25- public class CustomInstrumentation extends SimpleInstrumentation {
27+ public class CustomInstrumentation implements Instrumentation {
2628
2729 @ Override
28- public DataFetcher <?> instrumentDataFetcher (DataFetcher <?> dataFetcher ,
29- InstrumentationFieldFetchParameters parameters ) {
30+ public @ NotNull DataFetcher <?> instrumentDataFetcher (DataFetcher <?> dataFetcher ,
31+ InstrumentationFieldFetchParameters parameters , InstrumentationState state ) {
3032 return new ProxyDataFetcher <>(dataFetcher );
3133 }
3234}
You can’t perform that action at this time.
0 commit comments