You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can use "number=gt=0", "sort()", and "first()". But when I try to use contain it gives the following error:
node_modules/rql/js-array.js:66
return array instanceof Array && contains(array, value);
^
TypeError: contains is not a function
at node_modules/rql/js-array.js:66:37
at Array.filter (node_modules/rql/js-array.js:301:7)
at Array.eval (eval at query (node_modules/rql/js-array.js:419:73), <anonymous>:1:237)
at Array.exports.operators.and (node_modules/rql/js-array.js:106:25)
at Array.eval (eval at query (node_modules/rql/js-array.js:419:73), <anonymous>:1:58)
at eval (eval at query (node_modules/rql/js-array.js:419:73), <anonymous>:1:274)
at Object.<anonymous> (queryDemo.js:31:14)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
I've tried to use "contains(somearray,chips)", and "somearray=contains=chips". Both give the same error.
Do these require a different syntax, or are these only supported in the new Query().lt("foo",3).gt("foo",10); fashion?
The text was updated successfully, but these errors were encountered:
The problem is the missing require("./util/contains") in js-array.js. When adding it, everything works normally.
commit 4ae84c8 has solved this, but this isn't included in a release yet.
I can't seem to use the contains() function, while others work just fine.
For example:
I can use "number=gt=0", "sort()", and "first()". But when I try to use contain it gives the following error:
I've tried to use "contains(somearray,chips)", and "somearray=contains=chips". Both give the same error.
Do these require a different syntax, or are these only supported in the
new Query().lt("foo",3).gt("foo",10);
fashion?The text was updated successfully, but these errors were encountered: