Open
Description
Expected behavior
Mutation is possible by calling the fields by either only their code
e.g. foo
or with the objec obrick as a prefix e.g. ObjectBrickFoo.foo
Actual behavior
gives an error because the label is picked and set in the scema.
Steps to reproduce
- Create a Class (MyClass)
- Create a object brick (ObjectBrickFoo), with a datatype table (code: foo, label: table)
- Create another object brick (ObjectBrickBar), with a datatype table (code: bar, label: table)
- link both the object bricks to the class.
- open mutation schema and setup the fields of the class (ObjectBrickFoo.foo and ObjectBrickBar.bar)
- fire a mutation and recieve error:
{
"errors": [
{
"message": "Schema must contain unique named types but contains multiple types named \"TableInput\" (see [Introduction - graphql-php](https://webonyx.github.io/graphql-php/type-definitions/#type-registry).) "
}
]
}