projectOff method

BagelDBRequest projectOff(
  1. dynamic slugs
)

Remove the feields you want to remove from the payload to reduce the payload size and imrove efficeincy Project on cannot be used togher with projectOn they are mutually exclusive

Implementation

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