Until now the
in operator in BQL let you make queries over relationships. For example:
backbeam.select('cities').query('where this in ?.favoriteCities', someUser)
This example lets you query the
favoriteCities of a user. You could add more constraints if you need to.
Today we introduce a new functionality to the
var collection = backbeam.collection(id1, id2, id3) backbeam.select('cities').query('where this in ?', collection)
Well... that's nice, but that's not amazing! You know what is amazing? That you can use this with the
user entity and use either emails or Twitter ids or Facebook ids or a combination of any of them!
var collection = backbeam.collection().addTwitter(someTwitterId).addEmail('email@example.com') backbeam.select('user').query('where this in ?', collection)
You can also use the
not in variant of the operator. So now it's super easy to make sophisticated queries over your users or implement functionality to import contacts from the social networks or the user's agenda.