In cases where FROID schema schema generation results in empty @key fields (such as when only __typename is used as a key), FROID would return an unhelpful message:
Syntax Error: Expected Name, found "}".
This PR catches that error and instead throws an improved error to better explain what's going on:
Failed to parse key fields "" for type "SomeType" due to error: Syntax Error: Expected Name, found "}".
Description
In cases where FROID schema schema generation results in empty
@key
fields (such as when only__typename
is used as a key), FROID would return an unhelpful message:This PR catches that error and instead throws an improved error to better explain what's going on:
Type of Change
Checklist