Class Config


  • public class Config
    extends Object
    • Method Detail

      • instance

        public static Config instance()
      • isRemoveNullConstraintValues

        public boolean isRemoveNullConstraintValues()
        If true, recursively removes all null values from the variables component of the GraphQL request payload, otherwise null are retained. Note the treatment of null variable values is not well established by the GraphQL specification. It states that:

        null may be interpreted differently

        while also stating:

        The same two methods of representing the lack of a value are possible via variables by either providing the a variable value as null and not providing a variable value at all.

        See https://spec.graphql.org/October2016/#sec-Null-Value.

        Note, the default setting is false, which does not remove null variable/input values.

      • setRemoveNullConstraintValues

        public void setRemoveNullConstraintValues​(boolean value)