Union in subquery federation fails after update tyk to v5

Hi we just updated to tyk to v5, it seems working fine until we experience a bug in our GraphQL query, union in subquery (federation) fails. It got this error

"msg":"http: proxy error: internal: validation failed: external: non scalar field: documentActivityArr on type: DocumentActivityArr must have selections, locations: [], path: [query,document,documentActivities]\n","mw":"ReverseProxy"

I’m sorry I can’t copy the whole query. But I’ll provide it if you need it.

Do you have some idea how to fix it? also can you point out which codes in tyk OSS (tyk/gateway at master · TykTechnologies/tyk · GitHub) that returns that error, I’ll try to run that codes against my query.

Thank you

This is a proxy error from the gateway. There was a validation issue from the upstream service.

I guess the error seems to suggest that the type DocumentActivityArr requires a child property in your query.

This is a search of the error

Let us know how it goes