priyansh71 / mongo-PII

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mongo-PII

  • A sample GitHub PII file is linked here, where each object has the Primary Key as SSN.

  • The Database has two collections users and etags.

  • Whenever an empty POST request is sent to /, the backend populates the mongo collection with the PII data, and documents are updated, deleted or created as per the current status of the PII file and the etags collection is updated with the current Etag value.

    Screenshot 2022-06-21 at 14 04 36
  • If the PII file is the same as the one fetched in the last iteration, and still a POST request is made, the Etag from the response is checked, and as it would be the same, no changes are made to the users collection.

    Screenshot 2022-06-21 at 14 05 36

About


Languages

Language:JavaScript 100.0%