#I have issue with my code in db fetching
20 messages · Page 1 of 1 (latest)
TypeError: key.split is not a function
at Util.getKey (D:\code\floss v2\node_modules\quickmongo\dist\index.js:124:16)
at Database.<anonymous> (D:\code\floss v2\node_modules\quickmongo\dist\index.js:184:18)
at Generator.next (<anonymous>)
at D:\code\floss v2\node_modules\quickmongo\dist\index.js:59:61
at new Promise (<anonymous>)
at __async (D:\code\floss v2\node_modules\quickmongo\dist\index.js:43:10)
at Database.getRaw (D:\code\floss v2\node_modules\quickmongo\dist\index.js:181:12)
at Database.<anonymous> (D:\code\floss v2\node_modules\quickmongo\dist\index.js:194:30)
at Generator.next (<anonymous>)
at D:\code\floss v2\node_modules\quickmongo\dist\index.js:59:61
problem in
opt===list
You are not using it correctly, look at the documentation, get needs a string
if i user db.get then db is not a function
uh?
db.get needs a string. it uses strings. not objects
db.get("something"); not db.get({ "why": "it doesn't work with objects" });
data.get({noprefix_: true})
this is wrong, you pass in an object
it's supposed to be a string not an object, get doesn't work with objects
also db is the name in the examples. for you it's client.data.get, I didn't say to try and use the variable db... the variable name for you is different, you used something else. you should know this stuff if you are making discord bots, this is basic js programming
then what can i do
db.all also not working
and how to solve this
not solvable by you, this needs to change in quickdb code
also, I have no idea what you mean by db.all is not working, you didn't share anything about it
leave all
can you tell all how solve
what can i add there
here
add what?
solve what?
I don't know what you are trying to do