Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
2.6.5
-
None
Description
GridFsFile currently uses hard-coded field names to store the metadata information (filename, content length etc.). To query documents in turn one has to know those field names and thus look into the implementation. It would be cool if the default metadata field names would be exposed via public constants so that one can build a query like this:
new BasicDBObject(GridFsFile.CONTENT_TYPE, "application/xml"); |