mathsgod / graphqlite-mixed-type
mixed type for graphqlite
Installs: 9 161
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
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" } } }