lookup method

QueryBuilder lookup(
  1. Lookup lookup
)

Look up (left outer join) the specified field SimpleLookup of the model or perform specified lookup query ComplexLookup when getting data form the database

If multiple lookup method calls are chained then each call is concatenated to a list, so that you can perform multiple lookups.

lookup The lookup to make (left outer join) while getting the object from the database.lookup can be SimpleLookup or ComplexLookup.

Returns the QueryBuilder itself so that you can chain other methods

Implementation

QueryBuilder lookup(Lookup lookup) {
  //objectRequired("lookup", lookup);

  if (_action.lookups != null) {
    _action.lookups!.add(lookup);
  } else {
    _action.lookups = [lookup];
  }
  return this;
}