graphene-federation icon indicating copy to clipboard operation
graphene-federation copied to clipboard

BugFix: Enum support in compound keys

Open abhinand-c opened this issue 2 years ago • 0 comments

Fixes issue #23

When using Enum Field as a key in containing a compound statement, validation fails and doesn't work (raises AssertionError: Invalid compound key definition for type). But the same works if there is no compound key, only enum key.

Changes:

  • fix(Compound Key): Add validation for EnumType, fixes Invalid compound key definition for EnumType
  • feat(Tests): Add test for compound key with Enum types
  • refactor(Compound Key): cleaner logic

abhinand-c avatar Jun 12 '23 15:06 abhinand-c