mathsgod/graphqlite-mixed-type
最新稳定版本:2.3.0
Composer 安装命令:
composer require mathsgod/graphqlite-mixed-type
包简介
mixed type for graphqlite
README 文档
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"
}
}
}
统计信息
- 总下载量: 9.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-24