You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- When your schema exposes custom scalars that are not available in the printed SDL or differ across environments, you can configure both TypeScript scalar typings and GraphQL type names used in generated operations.
163
+
164
+
- Add these to your config object:
165
+
166
+
```json
167
+
{
168
+
"scalars": {
169
+
"LaunchqlInternalTypeHostname": "string",
170
+
"PgpmInternalTypeHostname": "string"
171
+
},
172
+
"typeNameOverrides": {
173
+
"LaunchqlInternalTypeHostname": "String",
174
+
"PgpmInternalTypeHostname": "String"
175
+
}
176
+
}
177
+
```
178
+
179
+
-`scalars`: maps GraphQL scalar names to TypeScript types for `typescript`/`typescript-operations`/`typescript-graphql-request`/`typescript-react-query` plugins.
180
+
-`typeNameOverrides`: rewrites scalar names in generated GraphQL AST so variable definitions and input fields use compatible built‑in GraphQL types.
181
+
182
+
- These options are also available programmatically through `LaunchQLGenOptions`.
0 commit comments