UNPKG
pouchdb-find
Version:
latest (9.0.0)
9.0.0
8.0.1
8.0.0
7.3.1
7.3.0
7.2.2
7.2.1
7.1.1
7.1.0
7.0.0
6.4.3
6.4.2
6.4.1
6.4.0
6.3.4
6.3.3
6.3.2
6.3.1
6.3.0
6.2.1-prerelease
6.2.0
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
Easy-to-use query language for PouchDB
github.com/nolanlawson/pouchdb-find
nolanlawson/pouchdb-find
pouchdb-find
/
lib
/
abstract-mapreduce
/
upsert.js
7 lines
(5 loc)
•
155 B
JavaScript
View Raw
1
2
3
4
5
6
7
'use strict'
;
var
upsert =
require
(
'pouchdb-upsert'
).
upsert
;
module
.
exports
=
function
(
db, doc, diffFun
) {
return
upsert.
apply
(db, [doc, diffFun]); };