From afa254a35264e7d5fcf01f1f717bb42b0ffb7147 Mon Sep 17 00:00:00 2001 From: Yoshitaka Kazue Date: Tue, 6 Aug 2024 23:34:28 +0900 Subject: [PATCH 1/2] replace customScalars with customScalarTypes --- docs/usage_with_relay.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage_with_relay.md b/docs/usage_with_relay.md index a6873e41..f976f26f 100644 --- a/docs/usage_with_relay.md +++ b/docs/usage_with_relay.md @@ -20,7 +20,7 @@ Modify your `relay.config.js` file to reflect the following: nodeInterfaceIdField: 'nodeId', nodeInterfaceIdVariableName: 'nodeId', }, - customScalars: { + customScalarTypes: { UUID: 'string', Datetime: 'string', JSON: 'string', @@ -32,7 +32,7 @@ Modify your `relay.config.js` file to reflect the following: ``` - `schemaConfig` tells the Relay compiler where to find the `nodeId` field on the `node` interface - - `customScalars` will improve Relay's type emission + - `customScalarTypes` will improve Relay's type emission ### Configuring your Relay Environment From 74368fc4b1659b5e099e40271647f78c30bc7cb7 Mon Sep 17 00:00:00 2001 From: nesskazu Date: Wed, 7 Aug 2024 21:33:54 +0900 Subject: [PATCH 2/2] add note --- docs/usage_with_relay.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/usage_with_relay.md b/docs/usage_with_relay.md index f976f26f..94a5e0f3 100644 --- a/docs/usage_with_relay.md +++ b/docs/usage_with_relay.md @@ -34,6 +34,10 @@ Modify your `relay.config.js` file to reflect the following: - `schemaConfig` tells the Relay compiler where to find the `nodeId` field on the `node` interface - `customScalarTypes` will improve Relay's type emission +!!! note + + For Relay versions older than v16.2.0, it should be named `customScalars` instead. + ### Configuring your Relay Environment This example uses [Supabase](https://supabase.com) for the GraphQL server, but pg_graphql can be used independently.