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

ParameterTypeRequiredDefaultStabilityDescription
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: Sep 25, 2024
actualValuestring  Long-TermThe actual value of the field. Note that this is null in the case where the field wasn't present.
expectedValuestringyes Long-TermThe value that was asserted to be contained in the field.
fieldNamestringyes Long-TermThe field being asserted on.