Package graphql

Interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>

    • Method Detail

      • data

        B data​(java.lang.Object data)
        Sets new data into the builder
        Parameters:
        data - the data to use
        Returns:
        the builder
      • errors

        B errors​(java.util.List<GraphQLError> errors)
        Sets error list as the errors for this builder
        Parameters:
        errors - the errors to use
        Returns:
        the builder
      • addErrors

        B addErrors​(java.util.List<GraphQLError> errors)
        Adds the error list to any existing the errors for this builder
        Parameters:
        errors - the errors to add
        Returns:
        the builder
      • addError

        B addError​(GraphQLError error)
        Adds the error to any existing the errors for this builder
        Parameters:
        error - the error to add
        Returns:
        the builder
      • extensions

        B extensions​(java.util.Map<java.lang.Object,​java.lang.Object> extensions)
        Sets the extension map for this builder
        Parameters:
        extensions - the extensions to use
        Returns:
        the builder
      • addExtension

        B addExtension​(java.lang.String key,
                       java.lang.Object value)
        Adds a new entry into the extensions map for this builder
        Parameters:
        key - the key of the extension entry
        value - the value of the extension entry
        Returns:
        the builder