23 lines
793 B
TypeScript
23 lines
793 B
TypeScript
import type {CodegenConfig} from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
schema: './schema.graphql',
|
|
generates: {
|
|
"src/generated/graphql.ts": {
|
|
plugins: ["typescript", "typescript-resolvers"],
|
|
config: {
|
|
enumValues: {
|
|
DeviceCommunicationType: "../model/model_enum_values.js#DeviceCommunicationType",
|
|
StorageItemType: "../model/model_enum_values.js#StorageItemType",
|
|
DeviceStatus: "../model/model_enum_values.js#DeviceStatus",
|
|
Permission: "../model/model_enum_values.js#Permission",
|
|
},
|
|
declarationKind: 'interface'
|
|
}
|
|
}
|
|
},
|
|
watch: true
|
|
};
|
|
|
|
export default config;
|