Admin UI crashes on entities that have fields of a non-graphweaver graphql...
Turn multiple data sources into a single GraphQL API.
Brought to you by:
skeep
Originally created by: kyelewis
Describe the bug
If your entity has fields on it that are GraphQL Object Types that are not part of another graphweaver resolver, the Admin UI will fail to fetch them properly and return a 400 error with no other data.
To Reproduce
Expected behavior
The Admin UI should continue working, even if it some of the fields are empty or missing.
Actual behavior
The admin UI fails and returns a generic "400" error to the user.
If the field is a single item, the error returned is:
"Cannot query field \"id\" on type \"OtherType\"."
If the field is an array, the error returned is:
"Field \"others\" of type \"[OtherType!]!\" must have a selection of subfields. Did you mean \"others { ... }\"?"
Originally posted by: skeep-exogee
Thanks @kyelewis we have no tests currently that cover "non-graphweaver" objects so we will need to add those tests along with the fix for this bug.