com.infomaximum.cluster.graphql.schema.datafetcher.ExtPropertyDataFetcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cluster-graphql Show documentation
Show all versions of cluster-graphql Show documentation
Library for creating a light cluster
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