Created
January 9, 2021 06:01
-
-
Save ashwinkumar2438/1adafd8083548aa86982c9a9209b5c15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mystore.store("books") | |
.add([{book_name:"Eloquent JavaScript"},{book_name:"You don't know JS"}]) | |
.store("users") | |
.add({name:"javascript"}) | |
.then(()=> mystore.store("books").get({book_name:"Eloquent JavaScript"}) ) | |
.then(res=>{ | |
console.log(res.books); //The final result | |
}) | |
.catch(()=>{ | |
console.log("transaction failed"); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment