Skip to content

Having 2 entities embedding common shared entity fails #91

@darkrift

Description

@darkrift

I have 2 entities embedding a 3rd entity which leads to the following error :

No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type 'AddressEmbeddableType' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'

In spring, EmbeddableTypeImpl doesn't implement hashcode nor equals for which GraphQLJpaSchemaBuilder fails to retrieve the proper type from the input or output cache in getEmbeddableType(EmbeddableType<?> embeddableType, boolean input) and thus a new type is created for the same shared embedded type.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions