public class Config extends Object
Modifier and Type | Method and Description |
---|---|
static Config |
instance() |
boolean |
isRemoveNullConstraintValues()
If true, recursively removes all
null values from the variables component
of the GraphQL request payload, otherwise null are retained. |
void |
setRemoveNullConstraintValues(boolean value) |
public static Config instance()
public boolean isRemoveNullConstraintValues()
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.public void setRemoveNullConstraintValues(boolean value)
Copyright © 2024. All rights reserved.