@john-silver what’s the actual error? The error details should make it a bit clearer as to which field is failing.
For example:
MongoServerError: Document failed validation
Additional information: {
failingDocumentId: ObjectId("65662386abdbda8139abd083"),
details: {
operatorName: '$jsonSchema',
schemaRulesNotSatisfied: [
{
operatorName: 'required',
specifiedAs: { required: [ 'createdAt' ] },
missingProperties: [ 'createdAt' ]
}
]
}
}