
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
  overwrite: true,
  schema: "/Users/d3r0/dev/repositories/active/avicenna/service/data-hub/data-connector/src/core/database/schema.gql",
  documents: "./src/app/core/data-access/**/*.graphql",
  generates: {
    "./src/app/core/data-access/graphql/generated/generated.ts": {
      plugins: [
        "typescript",
        "typescript-operations",
        "typescript-apollo-angular"
      ],
      config: {
        addExplicitOverride: true,
        withResultType: true
      }
    }
  }
};

export default config;
