99designs / 99designs/gqlgen

Object directive on root Mutation type doesn't have any effect

Đang mở
#1,425 1 bình luận 6 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?
Placing a `OBJECT` directive on the root `Mutation` type doesn't get run

### What did you expect?
The directive should get run for the root nodes

### Minimal graphql.schema and models to reproduce
```gql
type Mutation @cacheControl(maxAge: 0) {
dummy: Boolean
}

directive @cacheControl(
maxAge: Int
) on OBJECT
```

### versions
- `gqlgen version`?
v0.13.0
- `go version`?
1.13
- dep or go modules?

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.