engine icon indicating copy to clipboard operation
engine copied to clipboard

Possible entity naming collisions with generated GraphQL schema

Open ViliamKopecky opened this issue 2 years ago • 0 comments

Generated GraphQL schema automatically generates named types by appending Meta to entities.

So when you define Product entity and ProductMeta entity migrations are OK, but GraphQL server stops working because type name ProductMeta is now colliding.

Error: Schema must contain uniquely named types but contains multiple types named "ProductMeta".
  at new GraphQLSchema8
  ...

ViliamKopecky avatar Apr 21 '22 13:04 ViliamKopecky