Exceptions throw in a DataProperty loader or accessRule are not caught if wrapError = true is set. Instead they bubble up to the application level.
As I'm not sure where the best place would be to do the catching I didn't open a pull request. However in my tests I had to wrap the call as far up as the DefaultSchema in order to catch the exceptions.
Exceptions throw in a DataProperty loader or accessRule are not caught if wrapError = true is set. Instead they bubble up to the application level.
As I'm not sure where the best place would be to do the catching I didn't open a pull request. However in my tests I had to wrap the call as far up as the DefaultSchema in order to catch the exceptions.
https://github.com/aPureBase/KGraphQL/blob/3a31874a1bea6b5d1b21e21d4cdf9a8366f79e9d/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/DefaultSchema.kt#L51