564
edits
Line 34: | Line 34: | ||
} | } | ||
jetpack.places.find({phrase: "Groucho Marx", | |||
where: "history"}, callback); | |||
jetpack.places. | jetpack.places.find({phrase: "Groucho Marx", | ||
where:"bookmarks"}, callback) | |||
where:"bookmarks" | |||
// Write to the database | // Write to the database | ||
Line 60: | Line 50: | ||
function callback(results) { | function callback(results) { | ||
dump(results. | dump(results.length); // 3 | ||
for (let item in results) { | for (let item in results) { | ||
Line 67: | Line 57: | ||
// result item (bookmark or history object) | // result item (bookmark or history object) | ||
} | } | ||
results[1].title = "Groucho, we hardly knew ye!"; | results[1].title = "Groucho, we hardly knew ye!"; | ||
results[1].tags; // property returns ["myhero", "mustachioed-funny-guys",] | results[1].tags; // property returns ["myhero", "mustachioed-funny-guys",] | ||
} | } | ||
jetpack.places. | jetpack.places.find({ where: "bookmarks", phrase: "mustache"}, callback); | ||
</pre> | </pre> | ||
edits