bulkString method

Future bulkString(
  1. String docs, [
  2. bool allOrNothing = false
])

Bulk insert json string version. Must be used if '_id' and or '_rev' are needed in ANY of the documents

Implementation

Future<dynamic> bulkString(String docs, [bool allOrNothing = false]) {
  var url = bulkdocs;

  if (allOrNothing) {
    url = _setURLParameter(url, 'all_or_nothing', allOrNothing.toString());
  }

  // Must set the content type for a post
  final headers = <String, String>{};
  headers['Content-Type'] = 'application/json';

  url = _conditionUrl(url);
  return _httpRequest(bulkStringg, url, data: docs, headers: headers);
}