mathsgod / graphqlite-mixed-type
mixed type for graphqlite
2.3.0
2025-02-07 04:54 UTC
Requires
README
graphqlite-mixed-type
input and output mixed type for thecodingmachine/graphqlite
Setup
$factory = new SchemaFactory($cache, $container); //... $factory->addRootTypeMapperFactory(new MixedTypeMapperFactory);
Example
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"
}
}
}