Open PlayAnyData opened 3 months ago
Thanks for the issue! Could you create a reproduction? So we can reproduce it as well!
@ardatan Sure, you can find it in this branch. https://github.com/PlayAnyData/mesh-error-duplicate/tree/reproduce/7423 I have added further information to readme on how to reproduce.
Thanks for having a look at it.
Hi @ardatan , have you reproduce this issue ? No fix is planned ?
I have just updated the repo with latest 0.* version and the issue still exists. Any chances of fixing this?
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
We have defined additionalResolvers in the appropriate file such as:
Header_ID_V5_V4: { deprecated: mapFromField('original'), },
This field is defined in the schema as:
Where mapFromField is defined as (effectively it is just a pushdown of an additional selection, as a field has been deprecated and we have changed the naming, therefore we do the mapping in the gateway, as it was the easiest way to solve this generically):
However, running this code, the result is not as expected as
deprecated
is not filled. This is due tooriginal
not being pushed to the subgraph, as expected. A check inonFetch
shows that the field is not part ofinfo.fieldNodes
, which I would have expected. In the subgraph, the selectionSet also does not defineoriginal
but instead onlydeprecated
.To Reproduce Steps to reproduce the behavior:
Create a simple selectionSet on oneField with a definition as above and try to map it. It will not work :-(
Expected behavior
In previous versions, e.g. this resolved correctly. I would have expected
original
being send to the subgraph.Environment:
We are using the following versions:
v18
Additional context
Was working fine in previous versions.