find
Purpose
Finds domain class instances for the specified query and returns the first resultExamples
// 1 book from Dan Brown staring from 5th book ordered by release date Book.find([author:'Dan Brown'],[offset:5,sort:'releaseDate'])
Description
Book.find( Map query ) Book.find( Map query, Map queryParams )
query- A filter for queryingqueryParams- A Map containing parametersmax,offset,sortandvalidate(to turn off morphia mapping validation)