projectOn method

BagelDBRequest projectOn(
  1. dynamic slugs
)

Select only the fields you want the fields you want to receive by using a comma seperated list Project on cannot be used togher with projectOff they are mutually exclusive

Implementation

BagelDBRequest projectOn(slugs) {
  if (_projectOff != null) {
    throw ("You can't use both ProjectOn and ProjectOff in the same call");
  }
  if (slugs is List<String>) {
    _projectOn = slugs.join(",");
  } else if (slugs is String) {
    _projectOn = slugs;
  }
  return this;
}