orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

[questions] It's just some questions

Open tiagodavi opened this issue 9 years ago • 3 comments

Hi guys, first all I would like to thank you about excelent job you are doing here. Well, I'd like to know if it's possible to debug or to see querys in orientjs, besides I'd like to know if it's possible to build querys like that by using native API:

between date and date
>= 
<= 
etc

How can I do these things?

tiagodavi avatar Oct 19 '16 12:10 tiagodavi

@tiagodavi yes you can activate debug mode.

var OrientDB = require("orientjs");

var server = OrientDB({
    host: 'localhost',
    port: 2424,
    username: 'root',
    password: 'root',
    logger : { debug : console.log.bind(console, '[ORIENTDB]')}
});

wolf4ood avatar Oct 19 '16 13:10 wolf4ood

About the query builder there is support for >= and <=, but it's not documented yet. I will update the docs with some example.

Between is not supported

wolf4ood avatar Oct 19 '16 14:10 wolf4ood

Thank you @maggiolo00

tiagodavi avatar Oct 19 '16 14:10 tiagodavi