Hono-Workers

Hi everyone I have created a worker with the help of wrangler cli and bind with D1 Using Hono And i am trying to send request with payload (i send data in request -> body) from client side Can anyone tell me how can i get that payload in my route?
20 Replies
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
mian.m.arslan
mian.m.arslanOP15mo ago
I need to store data in d1 through worker And i am sending that data in request body I dont know how to get that data in worker
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
mian.m.arslan
mian.m.arslanOP15mo ago
This is my client side code
No description
mian.m.arslan
mian.m.arslanOP15mo ago
This is worker code
No description
mian.m.arslan
mian.m.arslanOP15mo ago
This is response that i get from my worker
No description
mian.m.arslan
mian.m.arslanOP15mo ago
Where can i get "description" "name" "permalink" In wrangler
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
mian.m.arslan
mian.m.arslanOP15mo ago
This code is deployed
No description
mian.m.arslan
mian.m.arslanOP15mo ago
I didnt know how can i extract request body in api.
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
mian.m.arslan
mian.m.arslanOP15mo ago
Got it Thanks @sps
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
mian.m.arslan
mian.m.arslanOP15mo ago
Can i use any ORM to query D1?
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Max (@rozenmd)
Max (@rozenmd)15mo ago
ORMs need to specifically support D1 - since we use an HTTP API Drizzle ORM has had D1 support since we were in alpha
mian.m.arslan
mian.m.arslanOP15mo ago
Ok thanks i will let you know if i need any help
mian.m.arslan
mian.m.arslanOP15mo ago
Hi This is my code it thorws me error that no table exist But users table is available in cloudflare account
No description
mian.m.arslan
mian.m.arslanOP15mo ago
This is cloudflare SS Kindly advise me the possible issue han how can i solve this
No description
Max (@rozenmd)
Max (@rozenmd)15mo ago
wrangler dev is using a local db, to connect to a remote db you need to pass --remote
Want results from more Discord servers?
Add your server