diff --git a/angular-pouchdb.coffee b/angular-pouchdb.coffee index 6490af4..ba28cf3 100644 --- a/angular-pouchdb.coffee +++ b/angular-pouchdb.coffee @@ -103,6 +103,7 @@ pouchdb.provider 'pouchdb', -> from: db.replicate.from.bind(db) sync: db.replicate.sync.bind(db) destroy: qify db.destroy.bind(db) + gql: qify db.gql.bind(db) ] # pouch-repeat="name in collection" diff --git a/angular-pouchdb.js b/angular-pouchdb.js index 385592b..9a9d2dd 100644 --- a/angular-pouchdb.js +++ b/angular-pouchdb.js @@ -129,7 +129,8 @@ THE SOFTWARE. from: db.replicate.from.bind(db), sync: db.replicate.sync.bind(db) }, - destroy: qify(db.destroy.bind(db)) + destroy: qify(db.destroy.bind(db)), + gql: qify(db.gql.bind(db)) }; } };