Filter array of objects inside document


I have an array of objects inside each of my documents and each object contains parameters about image 1-whether this image is a preview of a document (boolean variable) and 2-image source.

Each documents also has some other parameters through which I query documents, but I suppose that's not the crucial information.

So, I want to know if it's possible to filter my documents' array of images to only get images(image objects) with preview parameter set to true and how would I achieve it?


(system) #2