99designs / 99designs/gqlgen

nested explicit resolver not invoked

Đang mở
#2,393 0 bình luận 0 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ả

This may be a request for clarification rather than a bug report, but I have a schema similar to this:
```
type Foo {
id: ID!
bar: Bar! @goField(forceResolver: true)
}

type Bar {
baz: Baz! @goField(forceResolver: true)
}

type Baz {
value: Value! @goField(forceResolver: true)
}

type Query {
queryFoos(...): [Foo!]!
}
```
and then a unit test with a query that requests all the fields in this little example.

gql geneartes all those resolvers without problems, but the resolver for `value` is never invoked and my test fails with
```
"the requested element is null which the schema does not allow"
```
Am I missing a step or is there a limit to how deep these nested resolvers will be invoked?

Thanks

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.