mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
29 lines
596 B
JavaScript
29 lines
596 B
JavaScript
|
module.exports = {
|
||
|
schema: [
|
||
|
{
|
||
|
[process.env.HASURA_GRAPHQL_ENDPOINT]: {
|
||
|
headers: {
|
||
|
'x-hasura-admin-secret': process.env.HASURA_GRAPHQL_ADMIN_SECRET,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
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,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|