push method

dynamic push(
  1. dynamic args
)

Implementation

push(args) {
  var values;
  if (args is Map) {
    values = {
      '\$each': args['each'],
      '\$position': args['position'],
      '\$sort': args['sort'],
      '\$slice': args['slice'],
    };
  } else {
    values = args;
  }

  return _updateOP(UpdateCommandsLiteral.PUSH, values);
}