Syntax Errors on Fragments
Neobii opened this issue · comments
Adam Love commented
The error messages in defining fragments is not clear.
registerFragment(`
fragment HandlePartiesBadge on HandleParty {
_id
createdAt
isMod
party {
...HandlePartyBadge
}
`);
Will get you this error:
Error: Subfragment “HandlePartiesBadge” of fragment “HandleBadge” has not been initialized yet.
The error messages should be able to report syntax errors in fragments.
Adam Love commented
Looks like fragment processing is hard coded using regular expressions. Any one got any better ideas on how to do this?