Pouchdb.find is not a function

I not able to use mango queries with pouchDB in reactjs. I have scoured the whole internet for a suitable answer but couldn’t find one.

For example the docs here Mango queries is outdated as mentioned here GitHub - nolanlawson/pouchdb-find: Easy-to-use query language for PouchDB. ⚠️ NOTICE ⚠️: moved to the PouchDB repo that pouchdb-find is now merged with pouchdb.

So I tried using pouchdb-find plugin with both pouchdb & pouchdb-browser. It just doesnt work. Any help will be really great. Thanks!

Options tried so far:

Option1

import PouchDB from 'pouchdb';
import pouchAuth from 'pouchdb-authentication';
PouchDB.plugin(pouchAuth);
PouchDB.plugin(require('pouchdb-find').default);

Option2

import PouchDB from 'pouchdb';
import pouchAuth from 'pouchdb-authentication';
import pouchFind from 'pouchdb-find';
PouchDB.plugin(pouchAuth);
PouchDB.plugin(pouchFind');

Option3

import PouchDB from 'pouchdb-browser';
import pouchAuth from 'pouchdb-authentication';
import pouchFind from 'pouchdb-find';
PouchDB.plugin(pouchAuth);
PouchDB.plugin(pouchFind');

Option4

import PouchDB from 'pouchdb';
import pouchAuth from 'pouchdb-authentication';
PouchDB.plugin(pouchAuth);

Hello @krishna404,

This is a forum for Couchbase, not PouchDB (or CouchDB for that matter). You may want to try asking your question on the PouchDB Google Group - https://groups.google.com/g/pouchdb