twenty/front/codegen.js

24 lines
504 B
JavaScript
Raw Normal View History

module.exports = {
2023-06-01 12:20:05 +03:00
schema: process.env.REACT_APP_API_URL,
documents: ['./src/**/*.tsx', './src/**/*.ts'],
overwrite: true,
generates: {
'./src/generated/graphql.tsx': {
plugins: [
'typescript',
'typescript-operations',
'typescript-react-apollo',
],
config: {
skipTypename: false,
withHooks: true,
withHOC: false,
withComponent: false,
scalars: {
DateTime: 'string',
}
},
},
},
};