orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

Filter on undefind value don't return vertices

Open smehdi21 opened this issue 6 years ago • 2 comments

hello, orientjs version: 3.0.8 orientdb version: 3.0.10

Filter on null Property != "String" not work using orientJs but work fine using the orientdb studio

Exemple 1 :

    const result1 = await odb.query("select from V where nullValue != 'true' ");
    console.log(result1)

result :

    Array(0) []

Exemple 2 :

    const result2 = await odb.query("select from V where  nullValue IS NOT DEFINED  ");
    console.log(result2)

result :

    Array(29) [Object, Object, Object, Object, Object, Object, Object, Object, …]

smehdi21 avatar Nov 18 '19 11:11 smehdi21

Hi @smehdi21

which API of OrientJS are you using?

This one http://orientdb.com/docs/3.0.x/orientjs/OrientJS-Legacy.html

or

http://orientdb.com/docs/3.0.x/orientjs/OrientJS.html

Thanks

wolf4ood avatar Nov 18 '19 11:11 wolf4ood

Hi, We use the old API one. migration is planned but not done yet. Thanks

smehdi21 avatar Nov 18 '19 14:11 smehdi21