Skip to content

Commit

Permalink
replace customScalars with customScalarTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
nesskazu authored Aug 6, 2024
1 parent 2d5a995 commit afa254a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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,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

Expand Down

1 comment on commit afa254a

@k-thornton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nesskazu I got stuck here for a little while today. Any idea why this change never made it live?
https://supabase.github.io/pg_graphql/usage_with_relay/

Please sign in to comment.