mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:00:56 +00:00
25 lines
769 B
TypeScript
25 lines
769 B
TypeScript
|
|
import type { CodegenConfig } from '@graphql-codegen/cli';
|
||
|
|
|
||
|
|
const config: CodegenConfig = {
|
||
|
|
documents: './graphql-schema.graphql',
|
||
|
|
generates: {
|
||
|
|
'./src/graphql/types.ts': {
|
||
|
|
config: {
|
||
|
|
dedupeFragments: true,
|
||
|
|
exportFragmentSpreadSubTypes: true,
|
||
|
|
inlineFragmentTypes: 'combine',
|
||
|
|
preResolveTypes: true,
|
||
|
|
skipTypename: true,
|
||
|
|
useTypeImports: true,
|
||
|
|
withHooks: true,
|
||
|
|
},
|
||
|
|
plugins: ['typescript', 'typescript-operations', 'typescript-react-apollo'],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
hooks: {
|
||
|
|
afterOneFileWrite: ['npx prettier --write'],
|
||
|
|
},
|
||
|
|
schema: '../backend/pkg/graph/schema.graphqls',
|
||
|
|
};
|
||
|
|
|
||
|
|
export default config;
|