How to tell gqlgen to leave my files where they are instead of copying them over to schema.resolvers
- Ngôn ngữ chính
- Go
- Star
- 10.8k
- Fork
- 1.3k
- Merge trung bình
- 2 ngày 36 phút
- Pull request đã merge (30 ngày)
- 26
Mô tả
### What happened?
I want to be able to split schema.resolvers into their associated files, I have about 5 models each with it's own `{name}.resolvers.go` but anytime i run `gqlgen` It copies their contents into `schema.resolvers` and hence creates a duplicate methods and at the end the resulting file gets too large
my configured folder has the following contents
```sh
graph
├── bot.resolvers.go
├── generated.go
├── media.resolvers.go
├── model
│ ├── inputs.go
│ ├── models_gen.go
│ └── models.go
├── notes.resolvers.go
├── resolver.go
├── schema.graphqls
├── schema.resolvers.go # 👈 everything gets copied here, I can't split input types into other files
└── user.resolvers.go
```
I need to configure gqlgen to stop copying my smaller files to `schema.resolvers` just like we can `autobind` the models
### versions
- `go run github.com/99designs/gqlgen version` v0.17.24
- `go version go1.18.3 linux/amd64`
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.