mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 09:02:11 +03:00
ae7bad65ca
* chore: add types of schema * Ease codegen use on FE * chore: ignore prettier in generated files * lint: generated files * feature: strongly type filter of query * chore: ignore generated files in prettier * chore: eslint ignore generated files --------- Co-authored-by: Sammy Teillet <sammy.teillet@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
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,
|
|
},
|
|
},
|
|
},
|
|
};
|