You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to validate a query using wundergraph tools. I have a problem with the validation rule FieldSelectionMerging.
I have a very big graphql schema, but in order to show you the example, I will use only a small piece of it:
}
query getAnimals{
animals {
... on Dog {
home {
... on AdoptedLocation {
id
address
}
}
}
... on Cat {
home {
... on AdoptedLocation {
id
address
}
}
}
}
}
The response of the validation with the FieldSelectionMerging rule is error differing types 'DetachedHouse!' and 'Flat!' for objectName 'home'
In fact, the query is an example of mixin/diamond. From my point of view, there should be no errors here.
Reference implementation: link
Reference tests ported from js code: link
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to validate a query using wundergraph tools. I have a problem with the validation rule FieldSelectionMerging.
I have a very big graphql schema, but in order to show you the example, I will use only a small piece of it:
With this schema, the query I want to run is:
The response of the validation with the FieldSelectionMerging rule is error
differing types 'DetachedHouse!' and 'Flat!' for objectName 'home'
In fact, the query is an example of mixin/diamond. From my point of view, there should be no errors here.
Reference implementation: link
Reference tests ported from js code: link
The text was updated successfully, but these errors were encountered: