All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.execution.error.DefaultGraphQLServletObjectMapperConfigurer Maven / Gradle / Ivy

package graphql.kickstart.execution.error;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import graphql.kickstart.execution.config.GraphQLServletObjectMapperConfigurer;

/** @author Andrew Potter */
public class DefaultGraphQLServletObjectMapperConfigurer
    implements GraphQLServletObjectMapperConfigurer {

  @Override
  public void configure(ObjectMapper mapper) {
    mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
    mapper.setDefaultPropertyInclusion(JsonInclude.Include.ALWAYS);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy