From efa37a4d4dcc35902309359996926bbbdf203ec6 Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Fri, 31 May 2024 16:44:24 +0200 Subject: [PATCH] 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 --- src/pouchdb/pouchdb.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pouchdb/pouchdb.js b/src/pouchdb/pouchdb.js index c7ae74dae..c14b272e2 100644 --- a/src/pouchdb/pouchdb.js +++ b/src/pouchdb/pouchdb.js @@ -4,6 +4,7 @@ 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' @@ -11,6 +12,7 @@ import WebSQLite from 'react-native-quick-websql' const SQLiteAdapter = SQLiteAdapterFactory(WebSQLite) export default PouchDB.plugin(HttpPouch) + .plugin(PouchDBFind) .plugin(replication) .plugin(mapreduce) .plugin(SQLiteAdapter)