twenty/front/codegen.js
Lucas Bordeau cafcfdc95e
Feat/front metadata request (#1977)
* wip

* Wip

* Wip

* Finished v1

* Fix from PR

* Removed unused fragment masking feature
2023-10-13 18:01:57 +02:00

24 lines
571 B
JavaScript

module.exports = {
schema: process.env.REACT_APP_SERVER_BASE_URL + "/graphql",
documents: ['!./src/modules/metadata/**', './src/modules/**/*.tsx', './src/modules/**/*.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',
}
},
},
},
};