eddeee888 / graphql-code-generator-plugins

List of GraphQL Code Generator plugins that complements the official plugins.
MIT License
50 stars 12 forks source link

Add example #75

Closed polRk closed 1 year ago

polRk commented 1 year ago

Not working anything, cannot define typescript config

polRk commented 1 year ago

for example, this cofiguration does not use import type

/** @type {import('@graphql-codegen/cli').CodegenConfig} */
const config = {
    schema: '**/schema.graphql',
    generates: {
        'src/modules': {
            preset,
            plugins: [],
            useTypeImports: true,
            config: {
                typesPluginsConfig: {
                    emitLegacyCommonJSImports: false,
                    useTypeImports: true,
                },
            },
        },
    },
}