Commit e2ba6db
committed
fix(BA-5829): drop explicit AppConfigScopeType GQL registration
`gql_enum(...)` returns a wrapped enum class, which Strawberry registers
under `"AppConfigScopeType"`. Other GQL modules use the bare DTO enum as
a field annotation, and Strawberry auto-registers that under the same
name on first encounter — failing the schema build with `Type
AppConfigScopeType is defined multiple times`.
Drop the explicit registration and let Strawberry auto-register from
field references; re-export the GQL alias as a plain rebind so existing
`AppConfigScopeTypeGQL` imports keep working.1 parent 93d30d5 commit e2ba6db
1 file changed
Lines changed: 7 additions & 13 deletions
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 41 | + | |
48 | 42 | | |
49 | 43 | | |
0 commit comments