dolthub / dolthub-issues

Issues for dolthub.com
https://dolthub.com
4 stars 1 forks source link

How to use request body to insert data via POST? #527

Closed JasonkayZK closed 7 months ago

JasonkayZK commented 7 months ago

Hi, there, i'm wondering how to put the query in the request body instead of using the query parameter as the document said:

image

I tried form-data, x-www-form-urlencoded, raw/json, raw/text, neither of them worked:

image

The request has sent, but sql seemed has not been executed.

timsehn commented 7 months ago

This is a DoltHub issue. Transferring there.

JasonkayZK commented 7 months ago

I tried:

{"query": [query sql]}

This worked, thanks! ❤️