From afa254a35264e7d5fcf01f1f717bb42b0ffb7147 Mon Sep 17 00:00:00 2001 From: Yoshitaka Kazue Date: Tue, 6 Aug 2024 23:34:28 +0900 Subject: [PATCH] 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