FieldHadUnexpectedValue is a datatype for an assertion was made that a field had some value, and this assertion failed due to an unexpected value for the field.

This datatype is used by the union datatype, AssertionFailureOnField, ParserTestCaseOutputFailures, which is used by the datatype, ParserTestCaseFailuresForOutput and so on, which are ultimately used by the testParserV2() mutation field.

Table: FieldHadUnexpectedValue

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
actualValueString  Long-Term The actual value of the field. Note that this is null in the case where the field wasn't present.
expectedValueStringyes Long-Term The value that was asserted to be contained in the field.
fieldNameStringyes Long-Term The field being asserted on.