refactor!: Restructure grapqhl-schema to better align with clean code and project structure principles
This commit is contained in:
parent
47640ff13e
commit
a89c3eeea7
21 changed files with 648 additions and 1847 deletions
12
codegen.ts
12
codegen.ts
|
|
@ -2,16 +2,16 @@ import type {CodegenConfig} from '@graphql-codegen/cli';
|
|||
|
||||
const config: CodegenConfig = {
|
||||
overwrite: true,
|
||||
schema: './schema.graphql',
|
||||
schema: 'src/schema/*.graphql',
|
||||
generates: {
|
||||
"src/generated/graphql.ts": {
|
||||
"src/schema/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",
|
||||
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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue