@eddeee888/gcg-server-config
v0.2.2
Published
This library has the recommended default options used by the server preset `@eddeee888/gcg-typescript-resolver-files`.
Downloads
58,070
Maintainers
Readme
@eddeee888/gcg-server-config
This library has the recommended default options used by the server preset @eddeee888/gcg-typescript-resolver-files
.
Installation
yarn add -D @eddeee888/gcg-server-config
Usage
defineConfig
is typed with the assumption that GraphQL Code Generator's typescript and typescript-resolvers plugins are used.
import type { CodegenConfig } from '@graphql-codegen/cli';
import { defineConfig } from '@eddeee888/gcg-server-config';
const config: CodegenConfig = {
schema: '**/schema.graphql',
generates: {
'src/schema': {
plugins: ['typescript', 'typescript-resolvers'],
config: defineConfig(),
},
},
};
export default config;