Mongo DB update database from file upload via retool app

hi, i need t update database (mongodb) via file upload, which is the best way to make it in retool?

i need 2 things one is check if the "product" exist in the database via field "codice" if exist update some part of document if not exist add the product/document in the database with default field.

Hey @Mredodos! Happy to help here. We don't currently any sort of upsert actions for mongo, but we do have gets, deletes inserts and updates.

Would you mind sharing your current setup? Happy to help with any specific questions to have so we can get your query all set up!