mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-13 16:45:41 +03:00
25 lines
547 B
TypeScript
25 lines
547 B
TypeScript
|
import { CodegenConfig } from '@graphql-codegen/cli';
|
||
|
|
||
|
const config: CodegenConfig = {
|
||
|
schema: ['http://localhost:3000/graphql'],
|
||
|
overwrite: true,
|
||
|
documents: ['./src/**/*.ts', '!src/generated/**/*.*'],
|
||
|
generates: {
|
||
|
'./src/generated/graphql.tsx': {
|
||
|
plugins: [
|
||
|
'typescript',
|
||
|
'typescript-operations',
|
||
|
'typescript-react-apollo',
|
||
|
],
|
||
|
config: {
|
||
|
skipTypename: true,
|
||
|
withHooks: true,
|
||
|
withHOC: false,
|
||
|
withComponent: false,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default config;
|