Extract fields names from a collection with depth /Schema Analyzer

Hey,

I am trying to extract every unique field present in a collection.
I found this tool featured on the mongodb blog : https://www.mongodb.com/blog/post/meet-variety-a-schema-analyzer-for-mongodb. It does the job but it seems old and eval has since been depreciated on the latest versions of mongo
Is there any alternatives? I only need the keys .

Thanks!

Hello @arctic, welcome to the MongoDB Community forum!

Here is a similar post with more information: Mongo Schema Diagram or Report.

Hope it is useful to you!