Quick search:

db.query

query specification classes