We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e6b260 commit f4ef9a8Copy full SHA for f4ef9a8
examples/official-site/sqlpage/migrations/40_fetch.sql
@@ -40,15 +40,15 @@ more information on how to build JSON objects in your database.
40
41
```sql
42
set request = json_object(
43
- ''method'', ''POST''
+ ''method'', ''POST'',
44
''url'', ''https://postman-echo.com/post'',
45
''headers'', json_object(
46
''Content-Type'', ''application/json'',
47
''Authorization'', ''Bearer '' || sqlpage.environment_variable(''MY_API_TOKEN'')
48
),
49
''body'', json_object(
50
- ''Hello'', ''world'',
51
- ),
+ ''Hello'', ''world''
+ )
52
);
53
set api_results = sqlpage.fetch($request);
54
0 commit comments