2023-04-25 18:25:30 +03:00
|
|
|
module.exports = {
|
2024-01-09 14:46:03 +03:00
|
|
|
schema: process.env.REACT_APP_SERVER_BASE_URL + '/graphql',
|
|
|
|
documents: [
|
2024-04-04 18:27:36 +03:00
|
|
|
'!./src/modules/databases/**',
|
2024-01-09 14:46:03 +03:00
|
|
|
'!./src/modules/object-metadata/**',
|
|
|
|
'!./src/modules/object-record/**',
|
|
|
|
'./src/modules/**/*.tsx',
|
|
|
|
'./src/modules/**/*.ts',
|
|
|
|
'!./src/**/*.test.tsx',
|
2024-01-22 18:00:16 +03:00
|
|
|
'!./src/**/__mocks__/*.ts',
|
2024-04-04 18:27:36 +03:00
|
|
|
'!./src/modules/users/graphql/queries/getCurrentUserAndViews.ts',
|
2024-01-09 14:46:03 +03:00
|
|
|
],
|
2023-04-25 18:25:30 +03:00
|
|
|
overwrite: true,
|
|
|
|
generates: {
|
|
|
|
'./src/generated/graphql.tsx': {
|
|
|
|
plugins: [
|
|
|
|
'typescript',
|
|
|
|
'typescript-operations',
|
|
|
|
'typescript-react-apollo',
|
|
|
|
],
|
|
|
|
config: {
|
|
|
|
skipTypename: false,
|
|
|
|
withHooks: true,
|
|
|
|
withHOC: false,
|
|
|
|
withComponent: false,
|
2023-06-08 11:36:37 +03:00
|
|
|
scalars: {
|
|
|
|
DateTime: 'string',
|
2024-01-09 14:46:03 +03:00
|
|
|
},
|
2023-04-25 18:25:30 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|