mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
Fixes and improvements to the website (#5993)
This commit is contained in:
parent
aeb88b1c7f
commit
aa4c811fb8
2 changed files with 5 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue