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 arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in 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.