operator $in not working?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Start by running the provided level-queryengine and jsonquery-engine reproduction, comparing the query with Id: 1 against the query using $in: [1]. Trace the query path that handles these two forms; done means the $in query emits the expected matching data before the end event.
Written by the indexing model from the issue text.
Description
var db, jsonqueryEngine, levelQuery, levelup, pairs;
levelQuery = require('level-queryengine');
jsonqueryEngine = require('jsonquery-engine');
pairs = require('pairs');
levelup = require('levelup');
db = levelQuery(levelup("./db", {
valueEncoding: 'json'
}));
db.query.use(jsonqueryEngine());
db.ensureIndex('Id');
then if i execute:
dbl.query( { Id: 1 } ).on( "data", function(data){ console.log( "got data", data); } ).on( "end", function(){console.log( "end" )});
i get one result on "data"
but if i execute:
dbl.query( { Id: { $in: [1] } } ).on( "data", function(data){ console.log( "got data", data); } ).on( "end", function(){console.log( "end" )});
only the "end" event is being triggered.
any ideas?
- Dominant language
- JavaScript
- Stars
- 55
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eugeneware/jsonquery-engine
-
Events Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
eugeneware/jsonquery-engine#4 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in eugeneware/jsonquery-engine
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·