#I have issue with my code in db fetching

20 messages · Page 1 of 1 (latest)

broken plover
#

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

cobalt ibex
#

You are not using it correctly, look at the documentation, get needs a string

broken plover
cobalt ibex
#

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

broken plover
#

@cobalt ibexhere

broken plover
#

db.all also not working

#

and how to solve this

cobalt ibex
# broken plover 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

broken plover
#

can you tell all how solve

#

what can i add there

#

here

cobalt ibex