input and output mixed type for thecodingmachine/graphqlite
$factory = new SchemaFactory($cache, $container);
//...
$factory->addRootTypeMapperFactory(new MixedTypeMapperFactory);class Controllers{
/**
* @param mixed $a
*/
#[Query(outputType: "mixed")]
public function mixedInput($a)
{
return $a;
}
}query {
mixedInput(a:{hello:"world"})
}It will output
{
"data": {
"mixedInput": {
"hello": "world"
}
}
}