|
Does the MongoDB grails plugin support dynamic finders that return "partial documents"?
If yes, could someone please provide an example? if no, are others interested in this feature? I know that such functionally can be accessed via low level API calls but it would be really convenient to include partial documents with dynamic finders. Thanks, Nathan |
|
Administrator
|
I don't believe this is possible at the moment, but feel free to raise
a JIRA feature request. Can you provide an example? Cheers On Fri, Jul 6, 2012 at 4:12 PM, nreese <[hidden email]> wrote: > Does the MongoDB grails plugin support dynamic finders that return "partial > documents"? > > If yes, could someone please provide an example? > > if no, are others interested in this feature? > > I know that such functionally can be accessed via low level API calls but it > would be really convenient to include partial documents with dynamic > finders. > > Thanks, > > Nathan > > -- > View this message in context: http://grails.1312388.n4.nabble.com/MongoDB-plugin-dynamic-finders-returning-partial-documents-tp4631194.html > Sent from the Grails - user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Administrator
|
Actually I am wrong, you can do:
def query = Book.where { author == 'Stephen King' }.property('title') def titles = query.list() You could have multiple calls to the 'property' method to retrieve additional properties Cheers On Fri, Jul 6, 2012 at 4:47 PM, Graeme Rocher <[hidden email]> wrote: > I don't believe this is possible at the moment, but feel free to raise > a JIRA feature request. > > Can you provide an example? > > Cheers > > On Fri, Jul 6, 2012 at 4:12 PM, nreese <[hidden email]> wrote: >> Does the MongoDB grails plugin support dynamic finders that return "partial >> documents"? >> >> If yes, could someone please provide an example? >> >> if no, are others interested in this feature? >> >> I know that such functionally can be accessed via low level API calls but it >> would be really convenient to include partial documents with dynamic >> finders. >> >> Thanks, >> >> Nathan >> >> -- >> View this message in context: http://grails.1312388.n4.nabble.com/MongoDB-plugin-dynamic-finders-returning-partial-documents-tp4631194.html >> Sent from the Grails - user mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > > > -- > Graeme Rocher > Grails Project Lead > SpringSource - A Division of VMware > http://www.springsource.com -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
The suggested where query with specifying specific properties works great in most instances ...
However, I need an equivalent to the GORM list query that only loads partial documents. There is a lot of magic going on in the list query (pagination, sorting). I am having a difficult time wrapping my head around a where query that matches the functionality of an equivalent list query. Nathan |
| Powered by Nabble | Edit this page |
