Using pouchdb plugins in ionic

Hello! How can I integrate pouchdb plugins such as pouchdb-find or pouchdb-gql in a ionic project? Many thanks!

OK, I’ve found the solution by simply adding a script source e.g. libs/plugin-x.js (after pouchdb.js) to the index.html file. :slight_smile:

Have you, guys, worked with pouchdb-gql plugin? I can’t get it running. I’ve added the following script tags:

pouchdb.min.js
pouchdb.gql.js

as described here: https://github.com/pouchdb/GQL

…but I’m always getting this error: TypeError: db.gql is not a function

вот - https://www.youtube.com/watch?v=erQMOUcAdXk

How can I send the pouchDB data to my Laravel Server ? instead of CouchDB.