Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions docs/gql.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,12 @@ Note that only identifiers and string literals are case-sensitive.
Although only the query is mandatory, the callback is required to access the query result.
Currently no query options are implemented.

const pouchdb;
PouchDB('idb://test', function(err, db) {
pouchdb = db;
// Use pouchdb to call further functions
db.gql({select: "*", where: "type='Fire' and name is not null"}, function(err, result){
if(!err){
// Use the results of the query here
}
}
})
const db = await PouchDB('test');
db.gql({select: "*", where: "type='Fire' and name is not null"}, function(err, result) {
if(!err) {
// Use the results of the query here
}
});

## Select

Expand Down
Loading