Fixes and improvements to the website (#5993)

This commit is contained in:
Kamil Kisiela 2024-11-18 17:31:15 +01:00 committed by GitHub
parent aeb88b1c7f
commit aa4c811fb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -4,14 +4,14 @@ searchable: false
import { Callout } from '@theguild/components'
## Rate Limiting
# Rate Limiting
Rate limiting is a technique for reducing server load by limiting the number of requests that can be
made to a subgraph.
You can use rate limiting feature in order to limit the rate of calling queries and mutations.
### Programmatic Configuration
## Programmatic Configuration
```ts filename="gateway.config.ts"
import { defineConfig } from '@graphql-hive/gateway'
@ -74,7 +74,7 @@ type Query {
}
```
### Field Configuration
## Field Configuration
- `window`: Specify a time interval window that the max number of requests can access the field. We
use Zeit's ms to parse the window arg, docs here.

View file

@ -1,6 +1,6 @@
import { Callout } from '@theguild/components'
## Apollo Gateway
# Apollo Gateway
[Apollo-Gateway](https://www.apollographql.com/docs/federation/v1/gateway/) is the JavaScript Apollo
Federation gateway runtime.
@ -75,7 +75,7 @@ const { url } = await startStandaloneServer({ server })
console.log(`🚀 Server ready at ${url}`)
```
### Usage Reporting
## Usage Reporting
<Callout>
For more configuration options, such as sampling, client name and version reporting, please refer