graphql.execution.instrumentation.FieldFetchingInstrumentationContext Maven / Gradle / Ivy
package graphql.execution.instrumentation;
import graphql.Internal;
import graphql.PublicSpi;
import graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* FieldFetchingInstrumentationContext is returned back from the {@link Instrumentation#beginFieldFetching(InstrumentationFieldFetchParameters, InstrumentationState)}
* method, and it's much like the normal {@link InstrumentationContext} type except it also
* gives the value that was returned by a fields {@link graphql.schema.DataFetcher}. This allows
* you to know if the field value is a completely materialised field or if it's a {@link java.util.concurrent.CompletableFuture}
* promise to a value.
*/
@PublicSpi
public interface FieldFetchingInstrumentationContext extends InstrumentationContext
© 2015 - 2025 Weber Informatics LLC | Privacy Policy