diff --git a/docs/source/data/data-sources.mdx b/docs/source/data/data-sources.mdx index 0d82086b777..7aea23adf8c 100644 --- a/docs/source/data/data-sources.mdx +++ b/docs/source/data/data-sources.mdx @@ -126,29 +126,79 @@ You then extend the `RESTDataSource` class and implement whatever data-fetching - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
Name /
Type
Description
Name /
Type
Description
- - **Constructor options** -
- ##### `httpFetch` - - typeof `fetch` - - Override the `fetch` implementation used when sending requests to the datasource -
+ + **Constructor options** +
+ + ##### `healthCheckPath` + + `string` or `null` + + + Disable [HTTP-level health checks](../monitoring/health-checks/#http-level-health-checks) by passing `null`, or change the path on which it is served from the default of `/.well-known/apollo/server-health`. + +
+ + ##### `onHealthCheck` + + `Function` + + + A custom function to execute when Apollo Server receives a request at the [HTTP-level health check](../monitoring/health-checks/#http-level-health-checks) endpoint. + +
+ + ##### `cors` + + `Object` or `Boolean` + + + An `Object` containing [configuration options](https://github.com/expressjs/cors#configuration-options) for the server's CORS behavior. Provide `false` to remove CORS middleware entirely. + +
+ + ##### `stopGracePeriodMillis` + + `number` + + + The amount of time to wait after [`ApolloServer.stop()`](#stop) is called (including via a [termination signal](#stoponterminationsignals)) before forcefully closing all active connections. If you pass `Infinity`, Apollo Server waits indefinitely for all active connections to go idle. + + The default value is `10_000` (10 seconds). + +