99designs / 99designs/gqlgen

follow-schema support for model files

Đang mở
#3,146 0 bình luận 4 reaction 0 người được giao Xem trên GitHub
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?

Resolvers can be broken up into separate files that track schema filenames (but not directories, separate issue). This is done with
```
resolver:
layout: follow-schema
```
The `{name}` token can also be used in the filename that gets generated. This is also implemented for `exec`.

However, the modelgen plugin does not have support for this.

### What did you expect?

That model files could be generated by name following schema.

### Minimal graphql.schema and models to reproduce

### versions
- `go run github.com/99designs/gqlgen version`?
- `v0.17.48`
- `go version`?
- `go version go1.22.4 darwin/arm64`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.