Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionDefinitions should accept a Interface #42

Open
aizatto opened this issue May 9, 2020 · 0 comments
Open

ConnectionDefinitions should accept a Interface #42

aizatto opened this issue May 9, 2020 · 0 comments

Comments

@aizatto
Copy link

aizatto commented May 9, 2020

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 #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant