I have a model in collection which has userId of type ObjectId but i received in string format when i get changes initially or update. My app crashes if i set type objectId as when i receive userId in string.
’Expected object of type object id for property ‘userId’ on object of type ‘device_reading’, but received: 6050956d57f60d3225dfccb7’