I want use my data source as mongodb and connect through postgresql fdw. Is their any restrictions that the data present in mongodb to be structured or unstructured data?
For connecting to mongoDB you would need mongodb_fdw and not PostgreSQL fdw. I don't think they have any restrictions with respect to the data model.