Compass. Schema. Data visualization

Hello. In the MongoDB compass in the ‘schema’ tab you have good dynamic charts. I’d like to implement such graphics in the metabase app to see info. Could you please share query which get aggregate data and visualize in the ‘schema’ tab? Thanks

Compass shows you the schema by analyzing a document.
You might read How to get mongodb schema dump - Stack Overflow

I suppose in analyze by some aggregation function, isn’t it?)

It’s inferential from a document or selection of documents because of course not all documents have to be the same.
If you create constraints, you can analyze them instead.