Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Results in js-array.query #41

Open
dmachi opened this issue Jul 22, 2014 · 0 comments
Open

Duplicate Results in js-array.query #41

dmachi opened this issue Jul 22, 2014 · 0 comments

Comments

@dmachi
Copy link

dmachi commented Jul 22, 2014

When I use the js-array query, for some reason I'm getting two results even when the initial dataset is only one item:

var ArrayQuery=require("rql/js-array").query
var data = [{"id":"1a473b86-1bc3-4579-b990-a06068c15ac1","state":"available","public":true,"type":"toolbox","name":"TestTool1","ownerId":"dmachi","description":""}];

console.log(ArrayQuery("or(and(eq(state,available),eq(public,true)),eq(ownerId,dmachi))",{},data));

This should return exactly one item, but instead returns the correct item twice. Am I doing something wrong here or is this a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant