Skip to content

Commit

Permalink
Update Relay config
Browse files Browse the repository at this point in the history
To keep the old type generation behavior with \
`typescriptExcludeUndefinedFromNullableUnion` for now.
See: facebook/relay#4380

Signed-off-by: Sergey Zakhlypa <sergey.zakhlypa@secomind.com>
  • Loading branch information
szakhlypa committed Jun 25, 2024
1 parent 8ffc897 commit 8f9dc27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/relay.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"artifactDirectory": "./src/api/__generated__",
"customScalars": {
"customScalarTypes": {
"DateTime": "string",
"Upload": "File"
},
Expand All @@ -9,6 +9,7 @@
},
"eagerEsModules": true,
"language": "typescript",
"typescriptExcludeUndefinedFromNullableUnion": true,
"noFutureProofEnums": true,
"schema": "./src/api/schema.graphql",
"src": "./src"
Expand Down

0 comments on commit 8f9dc27

Please sign in to comment.