Implement query methods to return generic object(s) and document(s) result values.