Sha256: ec1f86924b2daea61a7688e6af998f5117c972702da00933cf051b4207e0dc8f

Contents?: true

Size: 175 Bytes

Versions: 8

Compression:

Stored size: 175 Bytes

Contents

// an example map function, emits the doc id 
// and the list of keys it contains

function(doc) {
  var k, keys = []
  for (k in doc) keys.push(k);
  emit(doc._id, keys);
};

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
jchris-couchrest-0.9.10 lib/couchrest/helper/templates/example-map.js
jchris-couchrest-0.9.11 lib/couchrest/helper/templates/example-map.js
jchris-couchrest-0.9.12 lib/couchrest/helper/templates/example-map.js
jchris-couchrest-0.9.6 lib/couchrest/helper/templates/example-map.js
jchris-couchrest-0.9.7 lib/couchrest/helper/templates/example-map.js
jchris-couchrest-0.9.8 lib/couchrest/helper/templates/example-map.js
jchris-couchrest-0.9.9 lib/couchrest/helper/templates/example-map.js
juozasg-couchrest-0.10.1 lib/couchrest/helper/templates/example-map.js