fetch method

Avanda fetch(
  1. List columns
)

Implementation

Avanda fetch(List columns) {
  if (queryTree.n == null) {
    throw "Specify service to fetch from";
  }

  queryTree.c = columns.map((column) {
    if (column is Avanda) {
      return column.queryTree;
    }
    return column is String ? Avanda.column(column) : column;
  }).toList();

  return this;
}