java - Query that returns only certain fields? -
i've got large, structured document(s) stored in mongodb, , using morphia query , model in java. i'd write query returns handful of fields in document, rather returning entire thing. i've looked in documentation on morphia site, couldn't find explains how this. possible write query morphia? in pseudocode like
get doc.propertya, doc.propertyb, doc.propertyx doc doc.someotherproperty = 'foo' thoughts? or morphia not designed operate in manner? there better try?
you'll still entity objects they'll contain fields listed.
Comments
Post a Comment