mathsgod/graphqlite-laminas-paginator-type
Composer 安装命令:
composer require mathsgod/graphqlite-laminas-paginator-type
包简介
README 文档
README
Setup
use Laminas\Paginator\Mappers\TypeMapperFactory; use TheCodingMachine\GraphQLite\SchemaFactory; $factory = new SchemaFactory($cache, $container); $factory->addTypeMapperFactory(new TypeMapperFactory); // add type mapper
Example
//Controller class class Root{ #[Query()] /** * @return Product[] */ function products():Paginator{ //get the products paginator return $paginator; } } //Type class #[Type] class Product{ #[Field] public string $name }
query{ products{ items(limit:5,offset:10){ name } count } }
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-19