Skip to content

ConnectionDefinitions should accept a Interface #42

@aizatto

Description

@aizatto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions