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

com.infomaximum.cluster.graphql.schema.datafetcher.ExtPropertyDataFetcher Maven / Gradle / Ivy

The newest version!
package com.infomaximum.cluster.graphql.schema.datafetcher;

import com.infomaximum.cluster.graphql.schema.datafetcher.utils.ExtResult;
import graphql.schema.DataFetchingEnvironment;
import graphql.schema.PropertyDataFetcher;

/**
 * Created by kris on 01.02.17.
 */
public class ExtPropertyDataFetcher extends PropertyDataFetcher {

    public ExtPropertyDataFetcher(String propertyName) {
        super(propertyName);
    }

    @Override
    public Object get(DataFetchingEnvironment environment) {
        Object result = super.get(environment);
        return ExtResult.get(result);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy