Class ConverterDataFetcher

  • All Implemented Interfaces:
    graphql.schema.DataFetcher<Object>

    public class ConverterDataFetcher
    extends Object
    implements graphql.schema.DataFetcher<Object>
    Implementation of DataFetcher to converts the result to Map. This is a workaround because the PropertyDataFetcher has an internal cache for methods that causes a conflict when Groovy classes are reloaded and at the moment is not possible to change the DataFetcher used.
    Since:
    3.1.6
    Author:
    joseross
    • Field Detail

      • dataFetcher

        protected graphql.schema.DataFetcher<?> dataFetcher
    • Constructor Detail

      • ConverterDataFetcher

        public ConverterDataFetcher​(graphql.schema.DataFetcher<?> dataFetcher)
    • Method Detail

      • get

        public Object get​(graphql.schema.DataFetchingEnvironment environment)
                   throws Exception
        Specified by:
        get in interface graphql.schema.DataFetcher<Object>
        Throws:
        Exception