ConnectionDefinitions should accept a Interface
Open
- Dominant language
- Go
- Stars
- 423
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
`func ConnectionDefinitions` only accepts a `graphql.Object` as its `NodeType`
I'm trying to migrate a graphql service I have written JS, and I have an interface as one of the connections.
I can't migrate it to `graphql-go/relay` because of this blocker.
https://relay.dev/graphql/connections.htm
> An “Edge Type” must contain a field called node. This field must return either a Scalar, Enum, Object, Interface, Union, or a Non‐Null wrapper around one of those types. Notably, this field cannot return a list.
I've created a PR for this fix https://github.com/graphql-go/relay/pull/43
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.