This allows us to query for generally supported attributes across all sections without needed a named fragment like ... on HomeViewSectionGeneric. This does switch the connection from exposing a Union to an Interface, but all else seems to work exactly the same.
I don't see much of a downside here. There was some recent discussion in Slack regarding the matchConnection field using a union type instead of an interface implemented for searchConnection but I think the real problems with the searchConnection field stems more from the query introspection and this error rather than the implementation of an interface-backed connection.
This allows us to query for generally supported attributes across all sections without needed a named fragment like
... on HomeViewSectionGeneric
. This does switch the connection from exposing a Union to an Interface, but all else seems to work exactly the same.I don't see much of a downside here. There was some recent discussion in Slack regarding the
matchConnection
field using a union type instead of an interface implemented forsearchConnection
but I think the real problems with thesearchConnection
field stems more from the query introspection and this error rather than the implementation of an interface-backed connection.Example