Skip to content

Commit 289572b

Browse files
committed
feat: Add PouchDBFind plugin to the PouchDB configuration
This plugin is required by cozy-client to process `find` queries Related PR: cozy/cozy-client#1507
1 parent 401cb15 commit 289572b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pouchdb/pouchdb.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import 'react-native-get-random-values'
44
import HttpPouch from 'pouchdb-adapter-http'
55
import SQLiteAdapterFactory from 'pouchdb-adapter-react-native-sqlite'
66
import PouchDB from 'pouchdb-core'
7+
import PouchDBFind from 'pouchdb-find'
78
import mapreduce from 'pouchdb-mapreduce'
89
import replication from 'pouchdb-replication'
910
import WebSQLite from 'react-native-quick-websql'
1011

1112
const SQLiteAdapter = SQLiteAdapterFactory(WebSQLite)
1213

1314
export default PouchDB.plugin(HttpPouch)
15+
.plugin(PouchDBFind)
1416
.plugin(replication)
1517
.plugin(mapreduce)
1618
.plugin(SQLiteAdapter)

0 commit comments

Comments
 (0)