Enum with the same name doesn't get merged

0
open
cynecx
cynecx
Posted 1 month ago

Enum with the same name doesn't get merged #8514

Server Version: v2.6.1-cloud.1

CLI Version (for CLI related issue): latest

Environment

Cloud

What is the expected behaviour?

I'd expect Hasura to merge enum types from two remote schemas that have the same name but slightly different variants/fields.

Keywords

remote-schema, enum, merge, fields, variants

What is the current behaviour?

The remote schema's enum variants/values are slightly different so the current Hasura behviour only picks on of the enum.

How to reproduce the issue?

  1. Have two remote schemas that contains a enum type with the same name but slightly different variants/fields
  2. Add the two remote schemas to Hasura
  3. The resulting merged schema only picks one of the enum types (therefore missing/omitting the other enum variants)

Any possible solutions?

Merge all enum variants/fields across remotes schemas that have the same name.