Skip to content

Commit f4ef9a8

Browse files
committed
fix sqlpage fetch example
thanks to jlm for reporting the issue
1 parent 7e6b260 commit f4ef9a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/official-site/sqlpage/migrations/40_fetch.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ more information on how to build JSON objects in your database.
4040
4141
```sql
4242
set request = json_object(
43-
''method'', ''POST''
43+
''method'', ''POST'',
4444
''url'', ''https://postman-echo.com/post'',
4545
''headers'', json_object(
4646
''Content-Type'', ''application/json'',
4747
''Authorization'', ''Bearer '' || sqlpage.environment_variable(''MY_API_TOKEN'')
4848
),
4949
''body'', json_object(
50-
''Hello'', ''world'',
51-
),
50+
''Hello'', ''world''
51+
)
5252
);
5353
set api_results = sqlpage.fetch($request);
5454

0 commit comments

Comments
 (0)