From 4b940859f17fcf77919724ecd9e44197d1d16800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 6 Feb 2022 23:13:32 +0200 Subject: [PATCH 1/2] Add config.scalars codegen example --- website/docs/quick-start.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/website/docs/quick-start.md b/website/docs/quick-start.md index f18ddef8c..a8ebb8db7 100644 --- a/website/docs/quick-start.md +++ b/website/docs/quick-start.md @@ -102,3 +102,17 @@ type Person { ``` These scalars can be used just like the base, built-in ones. + +## Changing types.ts + +```yml +generates: + ./src/graphql/types.ts: + plugins: + - typescript + config: + scalars: + JSON: string + UUID: string + Date: string +``` From f4fc90814a88ffd70d1e08e3f8e410fb17b6e6c4 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Mon, 14 Mar 2022 09:02:53 -0400 Subject: [PATCH 2/2] Update website/docs/quick-start.md --- website/docs/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/quick-start.md b/website/docs/quick-start.md index a8ebb8db7..9405b04fe 100644 --- a/website/docs/quick-start.md +++ b/website/docs/quick-start.md @@ -103,7 +103,7 @@ type Person { These scalars can be used just like the base, built-in ones. -## Changing types.ts +## GraphQL Code Generator integration ```yml generates: