Hi folks, Is there a way to add <filters> to <grap...
# graphql-kotlin
a
Hi folks, Is there a way to add filters to graphQLRoutes that is automatically configured by graphql-kotlin-spring-server? Thanks!
d
you can configure Webfilters but since
HandlerFilters
are applied programmatically I don't think there is a way to apply them without basically providing your own routes
🙏 1
a
Is there a way to disable the automatically configured route if providing custom routes?
d
guessing you could exclude
GraphQLRoutesConfiguration
from auto configs (but make sure to add
GraphQLSchemaConfiguration
as it is automatically pulled in by that config)
🙏 1
a
I am not able to exclude the GraphQLRoutesConfiguration using
Copy code
@SpringBootApplication(exclude = [GraphQLRoutesConfiguration::class])
failing with error
Copy code
The following classes could not be excluded because they are not auto-configuration classes:
	- com.expediagroup.graphql.server.spring.GraphQLRoutesConfiguration
d
then it is not possible to exclude it, you could try providing your own corouter as the primary but that is in the spring realm on how those would override each other (guess you would have to try it out)