Skip to content

Commit bedce54

Browse files
Merge pull request #2595 from Tony133/docs/update-mercurius-integration
docs(graphql): update mercurius integration
2 parents 9a98d01 + b9a4489 commit bedce54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/graphql/quick-start.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ npm i @nestjs/graphql @nestjs/apollo graphql apollo-server-express
1616
# npm i @nestjs/graphql @nestjs/apollo graphql apollo-server-fastify
1717

1818
# For Fastify and Mercurius
19-
# npm i @nestjs/graphql @nestjs/mercurius graphql mercurius fastify
19+
# npm i @nestjs/graphql @nestjs/mercurius graphql mercurius
2020
```
2121

2222
> warning **Warning** `@nestjs/graphql@>=9` and `@nestjs/apollo^10` packages are compatible with **Apollo v3** (check out Apollo Server 3 [migration guide](https://www.apollographql.com/docs/apollo-server/migration/) for more details), while `@nestjs/graphql@^8` only supports **Apollo v2** (e.g., `[email protected]` package).
@@ -345,3 +345,7 @@ export class AppModule {}
345345
> info **Hint** Once the application is running, open your browser and navigate to `http://localhost:3000/graphiql`. You should see the [GraphQL IDE](https://github.com/graphql/graphiql).
346346
347347
The `forRoot()` method takes an options object as an argument. These options are passed through to the underlying driver instance. Read more about available settings [here](https://github.com/mercurius-js/mercurius/blob/master/docs/api/options.md#plugin-options).
348+
349+
#### Example
350+
351+
A working example is available [here](https://github.com/nestjs/nest/tree/master/sample/33-graphql-mercurius).

0 commit comments

Comments
 (0)