Browse Source

docs: Add enum naming convention to codegen guide

Michael Bromley 2 years ago
parent
commit
191e17c09c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      docs/docs/guides/storefront/codegen/index.mdx

+ 5 - 1
docs/docs/guides/storefront/codegen/index.mdx

@@ -54,7 +54,11 @@ const config: CodegenConfig = {
         scalars: {
             // This tells codegen that the `Money` scalar is a number
             Money: 'number',
-        }
+        },
+        namingConvention: {
+            // This ensures generated enums do not conflict with the built-in types.
+            enumValues: 'keep',
+        },
       }
       // highlight-end
     },