2023-04-25 18:25:30 +03:00
|
|
|
module.exports = {
|
2023-08-01 00:36:04 +03:00
|
|
|
schema: process.env.REACT_APP_SERVER_BASE_URL + "/graphql",
|
2023-10-13 19:01:57 +03:00
|
|
|
documents: ['!./src/modules/metadata/**', './src/modules/**/*.tsx', './src/modules/**/*.ts'],
|
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',
|
|
|
|
}
|
2023-04-25 18:25:30 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|