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
Uncaught(inpromise) RxError: RxError:
SchemaCheck: givenindexisnotdefinedinschema
Given parameters: {key:"fileInfo.watch.time"}atObject.exports.newRxError(webpack:///./node_modules/rxdb/src/rx-error.js?:107:63)atreduce.filter.map.key(webpack:///./node_modules/rxdb/src/plugins/schema-check.js?:246:37)atArray.map(native)atcheckSchema(webpack:///./node_modules/rxdb/src/plugins/schema-check.js?:243:6)atHOOKS.(anonymousfunction).forEach.fun(webpack:///./node_modules/rxdb/src/hooks.js?:69:33)atArray.forEach(<anonymous>)
at runPluginHooks (webpack:///./node_modules/rxdb/src/hooks.js?:69:18)
at Object.create (webpack:///./node_modules/rxdb/src/rx-schema.js?:300:54)
at RxDatabase.collection (webpack:///./node_modules/rxdb/src/rx-database.js?:264:93)
at Promise.resolve.then (webpack:///./src/js/bg/library2/rx.js?:512:28)
Info
Environment: electron
Adapter: IndexedDB
Stack: React
Code
async()=>{constschema={name: 'items',schema: {version: 0,type: 'object',properties: {id: {type: 'string',primary: true},fileInfo: {type: 'object',properties: {watch: {type: 'object',properties: {time: {type: 'number',index: true}}}},},}}};constdb=awaitRxDB.create({name: 'testdb',adapter: 'idb',multiInstance: false});constcol=awaitdb.collection(schema);awaitcol.insert({id: '1',fileInfo: {watch: {time: 1}}});// -99.. next one bug, in code added fix for integer, here is number typereturncol.find().where('fileInfo.watch.time').gt(-9999999999999999999999999999).sort('fileInfo.watch.time').exec();}
Case
Schema with sub-sub-index
Issue
Info
Code
If change schema to this it works fine.
The text was updated successfully, but these errors were encountered: