diff --git a/docker_CHANGELOG.md b/docker_CHANGELOG.md index 980d57f36..a1a11e5cd 100644 --- a/docker_CHANGELOG.md +++ b/docker_CHANGELOG.md @@ -9,6 +9,10 @@ Changelog for the npm version are [here](/CHANGELOG.md). ## [Unreleased] +### Added + +- Updated error when there's duplicate names in generated GraphQL Schema (#1857) + ## [0.2.0-alpha.9] - 2024-11-11 ### Fixed diff --git a/internal/schema/schema.go b/internal/schema/schema.go index b27ba9dd2..9552ae0d2 100644 --- a/internal/schema/schema.go +++ b/internal/schema/schema.go @@ -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