DEV Community

Keerthi Vasan
Keerthi Vasan

Posted on

NoSQL with joins

With SavanahDB you can insert your document like this:

tb.insert({

 author:"john",
 price:500,
 country:"xxx",

})
Enter fullscreen mode Exit fullscreen mode

And search through documents like this :

tb.search('(country == "yyy" & & author =="john" ) || price < 1400', {
 limit : 5
 join : {
    books : 'that.author == this.name', 
 genre: 'that.name == this.genre as genre_info'
}}) 
Enter fullscreen mode Exit fullscreen mode

Pretty amazing right?
It's right here: Kanna_Sip https://npmjs.com/savanahdb

It's just a beta but works,a stable release will arrive in Saber Edition dropping soon!!

I am just one student working on this so if you would like to support me you can become my patron here : https://patreon.com/savanah

Top comments (0)