Is there a way to export the scheme (structure) of a fauna DB?

In mySQL there is a way to dumb the database scheme, and even data. I am curious if this feature exists for Fauna yet? Specifically helpful would be the scheme. Ideally it would be in FQL, that way you could also export Custom functions. So far this is an amazing product, and I am only just starting to work with it.

We do not have off the shelf feature to export/import schema but should be possible to script them through fql. For example, below gets a dump of all databases, Collections, Indexes, Functions, Roles and Keys. With slight modifications to these files, you should be able to import them.

Map(Paginate(Databases(),{size: 100000}), Lambda("x",Get(Var("x"))))
Map(Paginate(Collections(),{size: 100000}), Lambda("x",Get(Var("x"))))
Map(Paginate(Indexes(),{size: 100000}), Lambda("x",Get(Var("x"))))
Map(Paginate(Functions(),{size: 100000}), Lambda("x",Get(Var("x"))))
Map(Paginate(Roles(),{size: 100000}), Lambda("x",Get(Var("x"))))
Map(Paginate(Keys(),{size: 100000}), Lambda("x",Get(Var("x"))))

You can use FDM to copy schema/data from one Fauna database to other or dump data to flat files or S3.

Exactly what I was looking for! Thank you!