Can you create a collection with specified data types

I am running mongodb 4.4. We would like to create a collection with defined data types before any data is inserted, to be used by a tool. Is this possible?

Hopefully the following link will be useful.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.