How to use filter in monogdb


#1

Hi All:

I am a new for DreamFactory.
I know how to filter fields for data, such as, use the “_id” to get the record that I want.
but when I tried to filter by “temp4” field like images:
image

I can’t query any data. Does anyone has any ideas how should I do?

Thank you.


#2

Try to find this way once. Am not sure that it works accurately, but give it a try. Even I’m working on the same issue to retrieve images.

BasicDBObject qry= new BasicDBObject(“metadata.target_field”, “xyz”));
List files = gridFs.find(qry);