Good afternoon. We need to implement an application that deletes all documents on a CRUD collection and replaces them with data imported from another source. However, we would like to validate the data provided by the third-party source before deleting all documents in our CRUD collection. It would be very helpful for this task if the CRUD service offered a "dry-run" option that can be specified as a request parameter on the POST endpoints (namely the POST / and POST /bulk endpoints). With this option enabled, the CRUD service would do everything it normally does, including the validation of the uploaded documents, but it would not perform the actual insertion on MongoDB.
Possible alternatives
A possible alternative would be to implement POST /validate and POST /validate/bulk endpoints which perform only the validation of the uploaded documents
Feature Description
Good afternoon. We need to implement an application that deletes all documents on a CRUD collection and replaces them with data imported from another source. However, we would like to validate the data provided by the third-party source before deleting all documents in our CRUD collection. It would be very helpful for this task if the CRUD service offered a "dry-run" option that can be specified as a request parameter on the
POST
endpoints (namely thePOST /
andPOST /bulk
endpoints). With this option enabled, the CRUD service would do everything it normally does, including the validation of the uploaded documents, but it would not perform the actual insertion on MongoDB.Possible alternatives
A possible alternative would be to implement
POST /validate
andPOST /validate/bulk
endpoints which perform only the validation of the uploaded documents