andikaryanto11/ci4graphql 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andikaryanto11/ci4graphql

Composer 安装命令:

composer require andikaryanto11/ci4graphql

包简介

ORM Database mapping for Codeigniter 4

README 文档

README

This package is created to create graphql in ci4

Install

composer require andikaryanto11/ci4graphql

Usage

  1. Create Controller Class then Extends to this AndikGraphql\Controller\GraphQL

  2. in ci4 route file add this line AndikGraphql\Route\GraphqlRoute:routes($routes, 'YOUR_CONTROLLER::function')

  3. create directory under app called 'Graphql' (all your graphql work will be inside here).

  4. Resolver class must extends AndikGraphql\LogicResolver then should have function with name public function reveal({root}, {args}, {context})

  5. in QueryResolver / MutationResolver class, you must register your mutation / query like

       public function register()
       {
           $this->queries = [
               'getTest' => new Test(),
           ];
           return $this;
       }
    
  6. take a look at the example directory, the example directory structure looks like code igniter 4 to make it easy to understand

统计信息

  • 总下载量: 157
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固