Skip to content

Commit 2e46d82

Browse files
authored
fix example (#754)
1 parent a40a590 commit 2e46d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ var db = new Database();
114114
var pokemons = db.collection("pokemons");
115115

116116
db.query({
117-
query: "FOR p IN @@c FILTER p.type === 'fire' RETURN p",
118-
bindVars: { c: pokemons },
117+
query: "FOR p IN @@c FILTER p.type == 'fire' RETURN p",
118+
bindVars: { "@c": "pokemons" },
119119
})
120120
.then(function (cursor) {
121121
console.log("My pokemons, let me show you them:");

0 commit comments

Comments
 (0)