appy-one / acebase-server

A fast, low memory, transactional, index & query enabled NoSQL database server for node.js that easily syncs with browser and node.js clients and servers
MIT License
32 stars 14 forks source link

Browse for specific key in webmanager doesn't return data #7

Closed pmioduszewski closed 3 years ago

pmioduszewski commented 3 years ago

Hi! // First of all, Acebase is really good project 😃 Thank U! I was looking exactly for something like this for weeks!

Today I was trying to use "browse for specific key ..." on bottom of long list of keys in webmanager and this returned me: "node does not exist":

image

BUT key exist:

image

Node: 15.14.0 | MacOS Big Sur on M1 (11.3.1) | Browser is latest Chrome

appy-one commented 3 years ago

It might have to do with the fact that your keys are numbers, I'll try to reproduce it. What happens if you get the value in your code? eg, does db.ref('product/436798335').get() retrieve the right value?

pmioduszewski commented 3 years ago

It might have to do with the fact that your keys are numbers, I'll try to reproduce it. What happens if you get the value in your code? eg, does db.ref('product/436798335').get() retrieve the right value?

Hi! Sorry for late response

Yes, when I use i.e db.ref('product/436798335').get() ... it will return correct values. I've also tried: db.ref('product/' + Number(436798335)).get() ... and it worked as expected.

appy-one commented 3 years ago

Just to let you know, I found what's causing it. I'll publish an update later this week that will fix it.

appy-one commented 3 years ago

Published changes in acebase-server v1.2.3. Let me know if loading specific (numeric) keys in the webmanager is now working properly