Class ExecutionStrategyParameters


  • @PublicApi
    public class ExecutionStrategyParameters
    extends java.lang.Object
    The parameters that are passed to execution strategies
    • Method Detail

      • getSource

        public java.lang.Object getSource()
      • getLocalContext

        public java.lang.Object getLocalContext()
      • getDeferredCallContext

        @Nullable
        public @Nullable DeferredCallContext getDeferredCallContext()
        Returns the deferred call context if we're in the scope of a deferred call. A new DeferredCallContext is created for each @defer block, and is passed down to all fields within the deferred call.
             query {
                ... @defer {
                    field1 {        # new DeferredCallContext created here
                        field1a     # DeferredCallContext passed down to this field
                    }
                }
        
                ... @defer {
                    field2          # new DeferredCallContext created here
                }
             }
         
        Returns:
        the deferred call context or null if we're not in the scope of a deferred call
      • isInDeferredContext

        public boolean isInDeferredContext()
        Returns true if we're in the scope of a deferred call.
        Returns:
        true if we're in the scope of a deferred call
      • getField

        public MergedField getField()
        This returns the current field in its query representations.
        Returns:
        the current merged fields
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object