Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update query.md
Browse files Browse the repository at this point in the history
fixed typo in Promise link
  • Loading branch information
poef authored Sep 15, 2024
1 parent 63c83a2 commit 659b02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/client/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
client.query(...options) : Promise<Response> : throws
```

This method is available by default, but can be disable. The `query()` method will start a `HTTP QUERY` request, using [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch), with the given options. It will return a [Promise]()https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise which resolves in a [Response](../response/README.md) on success.
This method is available by default, but can be disable. The `query()` method will start a `HTTP QUERY` request, using [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch), with the given options. It will return a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which resolves in a [Response](../response/README.md) on success.

This method is fully backwards compatible with the `fetch()` method, except the HTTP method is fixed to `QUERY`.

Just like [`client.post()`](./post.md) you can set a `body` parameter in the options.
Just like [`client.post()`](./post.md) you can set a `body` parameter in the options.

0 comments on commit 659b02e

Please sign in to comment.