Skip to content

Commit

Permalink
fix: change ConnectionConfig.NodeType
Browse files Browse the repository at this point in the history
ConnectionDefinitions does not support Interfaces

Changing ConnectionConfig.NodeType from graphql.Object to graphql.Output enables this
  • Loading branch information
aizatto committed May 10, 2020
1 parent 5435009 commit 40cb53c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func NewConnectionArgs(configMap graphql.FieldConfigArgument) graphql.FieldConfi
}

type ConnectionConfig struct {
Name string `json:"name"`
NodeType *graphql.Object `json:"nodeType"`
EdgeFields graphql.Fields `json:"edgeFields"`
ConnectionFields graphql.Fields `json:"connectionFields"`
Name string `json:"name"`
NodeType graphql.Output `json:"nodeType"`
EdgeFields graphql.Fields `json:"edgeFields"`
ConnectionFields graphql.Fields `json:"connectionFields"`
}

type EdgeType struct {
Expand Down

0 comments on commit 40cb53c

Please sign in to comment.