Skip to content

Commit

Permalink
Merge pull request #7819 from juancarlosjr97/patch-2
Browse files Browse the repository at this point in the history
Minor improvement to Migration to Apollo Server 4
  • Loading branch information
Meschreiber committed Jan 12, 2024
2 parents a2811ed + 7641eae commit 1140fce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/source/migration.mdx
Expand Up @@ -900,6 +900,15 @@ https://your.server/?query=%7B__typename%7D
If you want a health check for your HTTP server unrelated to the health of the GraphQL execution engine (i.e., like Apollo Server 3's health check feature), you can add a `GET` handler that always succeeds to your web framework.


To prevent inaccurate positive health checks, ensure that the `Accept` header is either unset or explicitly set to `application/json`.

<Note>

Using a trivial query with Apollo Server 3's health check feature always produces a GraphQL response. Apollo Server 4 returns an HTML page unless the `Accept` header's value is unset or explicitly set to `application/json`.

</Note>

### Path parsing

In Apollo Server 3, many framework integrations enable you to use the `path` option to configure the [URL path](/apollo-server/v3/api/apollo-server/#path) where Apollo Server processes requests. By default, the `path` option uses the `/graphql` URL path.
Expand Down

0 comments on commit 1140fce

Please sign in to comment.