Ask coding questions

← Back to all posts
Why does ReplDB get all only return the keys?
codingjlu

So whenever I use ReplDB's prefix/get all request, it only returns the keys of the values. Is this the normal behavior? I tried visiting the link in the browser:

And also curl:

And both times, it only returns the keys. When I give it a prefix, the same result. Anyone know why this happens?

Voters
codingjlu
Comments
hotnewtop
Coder100

yes
that is the normal behavior

as per the docs, ?prefix= gives all the keys with that prefix.

codingjlu

@Coder100 not the normal behavior in every other database I know...

ruiwenge2

really? when i go to any replit database link it shows a blank page and nothing else

codingjlu

@ruiwenge2 lol that's because you probably didn't set anything.

codingjlu

@ruiwenge2 it's not just the db link. You have to include the query string...

ruiwenge2

@codingjlu no, in my card creator website, there are 68 keys, and it still shows nothing

codingjlu

@ruiwenge2 did you go to $REPLIT_DB_URL?prefix=?

ruiwenge2

@codingjlu i JUST tried it...
and still didn't work

ruiwenge2

@codingjlu can you show me a screenshot of what its supposed to show?

codingjlu

@ruiwenge2 I set three items: Hello, t, and test. I'm visiting $REPLIT_DB_URL?prefix= and here's what it looks like:

codingjlu

And the values is:

ruiwenge2

@codingjlu the url of the database for me is something like https://kv.replit.com/blahblahblah

codingjlu

@ruiwenge2 same...

ruiwenge2

@codingjlu that’s strange.