Skip to content

Commit 814057f

Browse files
authored
Merge pull request #547 from nesskazu/replace-custom_scalars-with-custom_scalar_types
replace customScalars with customScalarTypes
2 parents 2d5a995 + 74368fc commit 814057f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/usage_with_relay.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Modify your `relay.config.js` file to reflect the following:
2020
nodeInterfaceIdField: 'nodeId',
2121
nodeInterfaceIdVariableName: 'nodeId',
2222
},
23-
customScalars: {
23+
customScalarTypes: {
2424
UUID: 'string',
2525
Datetime: 'string',
2626
JSON: 'string',
@@ -32,7 +32,11 @@ Modify your `relay.config.js` file to reflect the following:
3232
```
3333

3434
- `schemaConfig` tells the Relay compiler where to find the `nodeId` field on the `node` interface
35-
- `customScalars` will improve Relay's type emission
35+
- `customScalarTypes` will improve Relay's type emission
36+
37+
!!! note
38+
39+
For Relay versions older than v16.2.0, it should be named `customScalars` instead.
3640

3741
### Configuring your Relay Environment
3842

0 commit comments

Comments
 (0)