Package org.allGraphQLCases.server.config
package org.allGraphQLCases.server.config
-
ClassDescriptionA Spring bean that register
DataFetcherExceptionResolverAdapterto configure the way Java exceptions are mapped to GraphQL errors.
This class is both a sample, and the support for an IT test that checks proper error management on client side, when an error occurs on server side.This class was original copied from this thread, based on graphql-java's TracingInstrumentation.
Then changed toSimplePerformantInstrumentation, asSimpleInstrumentationis now deprecated.Implements the spring-graphql exception management, for Subscriptions