Skip to content

Commit

Permalink
update error so it's clearer when there's duplicate GraphQL names
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Nov 17, 2024
1 parent 74a9a37 commit f11e1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ func (s *Schema) loadExistingEdges() (*assocEdgeData, error) {
// ExposeToGraphQL() bool
func (s *Schema) addGQLType(name string) error {
if s.gqlTypeMap[name] {
return fmt.Errorf("there's already an entity with GraphQL name %s", name)
return fmt.Errorf("there's already an entity with GraphQL name %s. Maybe Node and Pattern with the same name?", name)
}
s.gqlTypeMap[name] = true
return nil
Expand Down

0 comments on commit f11e1cc

Please sign in to comment.