Skip to main content

schema_mismatch

Function schema_mismatch 

Source
pub fn schema_mismatch(
    class_name: &str,
    field_name: &str,
    expected: &FieldType,
    got: &FieldType,
) -> ParseError
Expand description

The INCORRECT_TYPE a client sees when a write disagrees with the stored type.

The message is API. spec/ asserts on it, and the parametric rendering Pointer<_User> is part of the string (SchemaController.js:1165-1173, typeToString at :697-705).