I'm moving a sails application from mongo to orientdb. I'm using sails-orientdb and am trying to build a filter for a query. I'm trying to query only on Assets that are connected to a particular Network. I can do this:
var edgeQuery = "select from Asset where in(NET_ASSET).@rid = #3961:0 and width >= 1920";
var query = dbclient.db.select(edgeQuery);
return query.all()
.then(function (contents) {
...etc..
which makes building my queries quite contorted since the number of parameters vary. I would like to do something like this:
I'm moving a sails application from mongo to orientdb. I'm using sails-orientdb and am trying to build a filter for a query. I'm trying to query only on Assets that are connected to a particular Network. I can do this:
which makes building my queries quite contorted since the number of parameters vary. I would like to do something like this:
Then I could build my filter as needed, but so far I've had no luck. Is it possible?