Skip to content

Commit

Permalink
feat: Add PouchDBFind plugin to the PouchDB configuration
Browse files Browse the repository at this point in the history
This plugin is required by cozy-client to process `find` queries

Related PR: cozy/cozy-client#1507
  • Loading branch information
Ldoppea committed Sep 24, 2024
1 parent a03fd4f commit 6deaaeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pouchdb/pouchdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import 'react-native-get-random-values'
import HttpPouch from 'pouchdb-adapter-http'
import SQLiteAdapterFactory from 'pouchdb-adapter-react-native-sqlite'
import PouchDB from 'pouchdb-core'
import PouchDBFind from 'pouchdb-find'
import mapreduce from 'pouchdb-mapreduce'
import replication from 'pouchdb-replication'
import WebSQLite from 'react-native-quick-websql'

const SQLiteAdapter = SQLiteAdapterFactory(WebSQLite)

export default PouchDB.plugin(HttpPouch)
.plugin(PouchDBFind)
.plugin(replication)
.plugin(mapreduce)
.plugin(SQLiteAdapter)

0 comments on commit 6deaaeb

Please sign in to comment.