Skip to content

Commit

Permalink
Merge pull request #547 from nesskazu/replace-custom_scalars-with-cus…
Browse files Browse the repository at this point in the history
…tom_scalar_types

replace customScalars with customScalarTypes
  • Loading branch information
olirice authored Aug 7, 2024
2 parents 2d5a995 + 74368fc commit 814057f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/usage_with_relay.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -32,7 +32,11 @@ 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

!!! note

For Relay versions older than v16.2.0, it should be named `customScalars` instead.

### Configuring your Relay Environment

Expand Down

0 comments on commit 814057f

Please sign in to comment.