Skip to content

Commit

Permalink
docs: recommend the client and server preset (#9741)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l authored Oct 31, 2023
1 parent 1bed87b commit 527da03
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/pages/plugins/typescript/typed-document-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { pluginGetStaticProps } from '@/lib/plugin-get-static-props'
export const getStaticProps = pluginGetStaticProps(__filename, { hasOperationsNote: true })

<Callout>
For new projects, we recommend using the [`client-preset`](/plugins/presets/preset-client), which uses `typed-document-node` under the hood.

This plugin is meant to be used for low-level use cases or as building block for presets.
<br /> For building a **GraphQL client application** we recommend using the [`client-preset`](/plugins/presets/preset-client).
</Callout>

<PluginHeader />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ title: typescript-operations
description: Generate TypeScript operations from GraphQL queries. This plugin is based on the `typescript` plugin, but it generates operations instead of types.
---

import { Callout } from '@theguild/components'
import { PluginApiDocs, PluginHeader } from '@/components/plugin'
import { pluginGetStaticProps } from '@/lib/plugin-get-static-props'
export const getStaticProps = pluginGetStaticProps(__filename, { hasOperationsNote: true })

<Callout>
This plugin is meant to be used for low-level use cases or as building block for presets.
<br /> For building a **GraphQL client application** we recommend using the [`client-preset`](/plugins/presets/preset-client).
</Callout>

<PluginHeader />
<PluginApiDocs />
5 changes: 5 additions & 0 deletions website/src/pages/plugins/typescript/typescript-resolvers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { PluginApiDocs, PluginHeader } from '@/components/plugin'
import { pluginGetStaticProps } from '@/lib/plugin-get-static-props'
export const getStaticProps = pluginGetStaticProps(__filename, { hasOperationsNote: true })

<Callout>
This plugin is meant to be used for low-level use cases or as building block for presets.
<br /> For building a **GraphQL server schema** we recommend using the [`server-preset`](/docs/guides/graphql-server-apollo-yoga-with-server-preset).
</Callout>

<PluginHeader />

<Callout>
Expand Down
9 changes: 9 additions & 0 deletions website/src/pages/plugins/typescript/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@ title: typescript
description: TypeScript plugin. Adds support for TypeScript.
---

import { Callout } from '@theguild/components'
import { PluginApiDocs, PluginHeader } from '@/components/plugin'
import { pluginGetStaticProps } from '@/lib/plugin-get-static-props'
export const getStaticProps = pluginGetStaticProps(__filename)

<Callout>
This plugin is meant to be used for low-level use cases or as building block for presets.
<br /> For building a **GraphQL client application** we recommend using the [`client-preset`](/plugins/presets/preset-client).
<br /> For building a **GraphQL server schema** we recommend using the
[`server-preset`](/docs/guides/graphql-server-apollo-yoga-with-server-preset).
</Callout>

<PluginHeader />

<PluginApiDocs />

0 comments on commit 527da03

Please sign in to comment.