Nodejs API to generate schema for a collection

Hi There,

I would like to make an API call to Atlas Mongodb to return a generated schema for a collection using nodejs. Is this possible?

Kind regards,

Kris.