INNER CODE UNIT · Java
main
righettod/poc-graphql · src/main/java/eu/righettod/graphqlpoc/Application.java:16
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
/* Uncomment the block blow to register the 2 built-in instrumentation to prevents DOS using abusive query*/
/*
@Bean
public Instrumentation addMaxQueryComplexityInstrumentation(){
return new MaxQueryComplexityInstrumentation(15);
}
@Bean
public Instrumentation addMaxQueryDepthInstrumentation(){
return new MaxQueryDepthInstrumentation(10);
}
*/
}