You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/docs/getting-started/index.mdx
+39-14Lines changed: 39 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Introduction
3
3
description: GraphQL Code Generator is a plugin-based tool that helps you get the best out of your GraphQL stack. From back-end to front-end, GraphQL Code Generator automates the generation of typed Queries, Mutations and, Subscriptions for React, Vue, Angular, Next.js, Svelte, whether you are using Apollo Client, URQL or, React Query.
Copy file name to clipboardExpand all lines: website/src/pages/docs/getting-started/installation.mdx
+30-22Lines changed: 30 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Quick Start
3
3
description: GraphQL Code Generator is a plugin-based tool that helps you get the best out of your GraphQL stack. From back-end to front-end, GraphQL Code Generator automates the generation of typed Queries, Mutations and, Subscriptions for React, Vue, Angular, Next.js, Svelte, whether you are using Apollo Client, URQL or, React Query.
Please avoid installing `graphql`, `@graphql-codegen/cli`, and its plugins as global dependencies. This will cause issues because of duplications of the `graphql` package. Install it only locally in your project.
27
26
28
-
</Callout>
29
-
30
27
## Monorepo Project
31
28
32
-
<Callouttype="warning">
33
-
If you are using Monorepo setup (Lerna/Yarn Workspaces/anything else), please note that GraphQL Codegen is using `require` to load plugins and files. This might break and fail in case of hoisting.
29
+
If you are using Monorepo setup (Yarn or pnpm Workspaces), please note that GraphQL Codegen is using `require` to load plugins and files. This might break and fail in case of hoisting.
34
30
35
31
If you are having issues with loading GraphQL-Codegen plugins, make sure it's installed correctly, at the same level of `node_modules`, and make sure it's accessible and available for the Codegen CLI.
36
32
37
-
</Callout>
33
+
## Setup
38
34
39
-
GraphQL Code Generator comes with dozens of plugins, from front-end to back-end, from web apps to mobile apps. If you are not sure which plugins might be helpful for your GraphQL stack, give a try at the [_Initialization Wizard_](#initialization-wizard).
35
+
GraphQL Code Generator comes with dozens of plugins, from frontend to backend, from web apps to mobile apps.
36
+
We recommend looking at the [guides](#manual-setup) or trying the [initialization wizards](#initialization-wizard)
40
37
41
38
Otherwise, you can start exploring the [plugins](/plugins) and [setting up them manually](#manual-setup).
42
39
43
-
## Setup
44
-
45
-
### Initialization Wizard
40
+
## Initialization Wizard
46
41
47
42
Once installed, GraphQL Code Generator CLI can help you configure your project based on some popular flows:
Question by question, it will guide you through the whole process of setting up a schema, selecting and installing plugins, picking a destination to where your files are generated, and a lot more.
58
53
59
-
###Manual Setup
54
+
## Manual Setup
60
55
61
56
Once GraphQL Code Generator is installed and added to your project's development workflow (scripts), you can start installing plugins and configuring them.
62
57
63
58
If you are looking for the **best way to leverage GraphQL Code Generator on your stack**, you should read one of our _Guides_.
64
59
65
-
#### Client
60
+
### Client
61
+
62
+
Follow one of the following guides to get started.
We recommend using [a `client` preset](/plugins/presets/preset-client) that has a recommended configuration for the client applications. It's included in the `@graphql-codegen/cli` package by default. Follow one of the following guides to learn more:
72
+
### Server
68
73
69
-
-[React](/docs/guides/react-vue)
70
-
-[Vue](/docs/guides/react-vue)
71
-
-[Angular](/docs/guides/angular)
72
-
-[Svelte](/docs/guides/svelte)
74
+
Follow one of the following guides to get started.
0 commit comments