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?

take @ this: https://rawgithub.com/wiki/mongodb/morphia/javadoc/0.103/apidocs/com/google/code/morphia/query/query.html#retrievedfields%28boolean,%20java.lang.string...%29

you'll still entity objects they'll contain fields listed.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -