pubkey / rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
https://rxdb.info/
Apache License 2.0
21.15k stars 1.03k forks source link

can't return result #704

Closed daihy8759 closed 6 years ago

daihy8759 commented 6 years ago

env

"rxdb": "^7.6.0",
"pouchdb-adapter-leveldb": "^7.0.0",
"leveldown": "^4.0.1",
"rxjs": "^6.2.0",
  RxDB.plugin(require('pouchdb-adapter-leveldb'))
  db = await RxDB.create({
    name: path.resolve(__dirname, '../../../data/test'),
    adapter: require('leveldown'),
    password: '****',
    multiInstance: true
  })
db.collection({
    name: 'test1',
    schema: {
      type: 'object',
      version: 0,
      properties: {
        status: {
          type: 'integer'
        }
      }
    }
  })

db.lottery.find().exec()return all docs,but db.lottery.find().where('status').eq(0).exec() is empty,i ensure have documents with status =0 and use db.test1.pouch.bulkDocs(data) insert data

pubkey commented 6 years ago

Hi @dai875939260 thanks for reporting the issue. Please create a PR with a failing test, like described in the issue-template.

pubkey commented 6 years ago

I'm closing this. There is no way to reproduce this with the given information.