I have following schema:
interface Parameter {
id: String! @id
label: String!
}
type StringParameter implements Parameter {
value: String!
}
type FloatParameter implements Parameter {
value: Float!
}
type TestType {
parameters: [Parameter!]
}
The generated mutation:
mutation {
addTestType(input: [
{
parameters: [{
id: "param1"
label: ""
value: 1.0
}
]
}
]) {
...
}
}
does not work because the type for creating new parameters is ParameterRef
.
Shouldn’t the type rather be:
{
stringParameterRef: StringParameterRef
floatParameterRef: FloatParameterRef
}
instead? (Like with union input types)
Do I need to do something differently?