Mongo Schema to SQL

Hello.
Im quite new to mongo so Im wondering how something like this works.

I am wondering what are some tools that exist for this use case.
For example if we have a collection of documents in mongoDB. I’m wondering what is the easiest way to export the schema from mongo and transform this schema from mongoDB into a sql server table.

What is the recommended appoarch to handle something like this.

Things we need to consider what about nested data.
Is there tools out there that can simplify this process.

We just want to export a mongo schema collection and transfer that to a SQL server collection.

Thanks