perak / extract-mongo-schema

Extract schema from Mongo database, including foreign keys
71 stars 22 forks source link

Fix for recursive exploration being reset every time. #9

Closed vfaure-amadeus closed 5 years ago

vfaure-amadeus commented 5 years ago

While recursive exploration worked in a way, I recently found out that instead of counting the actual frequency of every time, it would only use the latest type it found and set frequency to 1. That's because silly me forgot to check that the item was empty before reseting it when doing recursive calls, this has now been fixed for Objects and Arrays.

perak commented 5 years ago

Nice, thank you!