How to infer schema for a Mongodb database?

i can’t think of any.

Mongodb is schemaless db, so no such metadata. The only way would be trying to find a pattern from the data rows directly.