Package graphql.util

Class ReplaceNode

java.lang.Object
graphql.util.ReplaceNode

public class ReplaceNode extends Object
Special class to be set as var in TraverserContext.setVar(Class, Object) to indicate that the current node should be replaced. This is used when the new Node actually has different children and you wanna iterator over the new State.
  • Field Details

    • newNode

      private final Object newNode
  • Constructor Details

    • ReplaceNode

      public ReplaceNode(Object newNode)
  • Method Details

    • getNewNode

      public Object getNewNode()