mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-30 03:43:02 +03:00
1f98bc899d
Closes #4757 --------- Co-authored-by: Thomas Trompette <thomast@twenty.com>
33 lines
800 B
JavaScript
33 lines
800 B
JavaScript
module.exports = {
|
|
schema: process.env.REACT_APP_SERVER_BASE_URL + '/graphql',
|
|
documents: [
|
|
'!./src/modules/databases/**',
|
|
'!./src/modules/object-metadata/**',
|
|
'!./src/modules/object-record/**',
|
|
'./src/modules/**/*.tsx',
|
|
'./src/modules/**/*.ts',
|
|
'!./src/**/*.test.tsx',
|
|
'!./src/**/__mocks__/*.ts',
|
|
'!./src/modules/users/graphql/queries/getCurrentUserAndViews.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',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|