DEV Community

Gurupal Singh
Gurupal Singh

Posted on

send json body in react useQuery ..!!

Hi, is there any way to send json body in GET request of react useQuery ?

for example i want to send below id in json body :-

{
"id": 21
}

Top comments (2)

Collapse
 
rafh profile image
Rafael Heard

You may have better luck asking this on stackoverflow.com

Collapse
 
shubhamhkr profile image
shubhamhkr

You can't add body in get request

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more