Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ★ wanayoo — archive 1999 https://github.com/graphql-java/graphql-java/issues/1921 | Nouvelle recherche | Portail wanayoo |
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Describe the bug
The validation done by
SchemaTypeCheckerdoes not allow an implementing type to change the argument order for a field declared by one of the implementing interfaces.In
graphql.schema.idl.ImplementingTypesChecker#checkArgumentConsistencywe're relying on the arguments position (index) to do the comparison.To Reproduce
Results in these 2 errors:
The object type 'BaseType' [@6:13] has tried to redefine field 'fieldA' arguments defined via interface 'InterfaceType1' [@2:13] from 'arg1:String' to 'arg2:IntThe object type 'BaseType' [@6:13] has tried to redefine field 'fieldA' arguments defined via interface 'InterfaceType1' [@2:13] from 'arg2:Int' to 'arg1:String