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•14mo ago
Message Not Public
Sign In & Join Server To View
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•14mo ago
Message Not Public
Sign In & Join Server To View
This is my client side code
This is worker code
This is response that i get from my worker
Where can i get
"description"
"name"
"permalink"
In wrangler
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
This code is deployed
I didnt know how can i extract request body in api.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Got it
Thanks @sps
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Can i use any ORM to query D1?
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
ORMs need to specifically support D1 - since we use an HTTP API
Drizzle ORM has had D1 support since we were in alpha
Ok thanks i will let you know if i need any help
Hi
This is my code it thorws me error that no table exist
But users table is available in cloudflare account
This is cloudflare SS
Kindly advise me the possible issue han how can i solve this
wrangler dev is using a local db, to connect to a remote db you need to pass
--remote