Find a file type in nested entity

How to find the filetype which is stored in nested entity of a collection using find API? Basically need to skip some of the files if it is not supported by my application. Will be using MongoDb Java driver

I do not understand your use-case.

Please provide sample documents from your collections.

Also share the expected results.