当前位置: 首页 > 软件库 > 大数据 > 数据查询 >

graphql-php

A PHP port of GraphQL reference implementation
授权协议 MIT License
开发语言 Java
所属分类 大数据、 数据查询
软件类型 开源软件
地区 不详
投 递 者 朱炳
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

graphql-php

CI

This is a PHP implementation of the GraphQL specificationbased on the reference implementation in JavaScript.

Installation

Via composer:

composer require webonyx/graphql-php

Documentation

Full documentation is available at https://webonyx.github.io/graphql-phpor in the docs directory.

If you don't know what GraphQL is, visit the official website first.

Examples

There are several ready examples in the examples directory,with a specific README file per example.

Versioning

This project follows Semantic Versioning 2.0.0.

Elements that belong to the public API of this package are marked with the @api PHPDoc tag.Those elements are thus guaranteed to be stable within major versions. All other elements arenot part of this backwards compatibility guarantee and may change between minor or patch versions.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

See LICENSE.

  • GitHub - webonyx/graphql-php: A PHP port of GraphQL reference implementation 本站和网页 https://github.com/webonyx/graphql-php 的作者无关,不对其内容负责。快照谨为网络故障时之索引,不代表被搜索网站的即时页面。 GitHub - webonyx/graphql-php: A PHP

  • 我是GraphQL的新手,想要使用graphql-php进行编程,以便构建一个简单的API来开始 . 我正在阅读文档并试用这些例子,但我在开始时就陷入了困境 . 我希望我的架构存储在 schema.graphql 文件中,而不是手动构建它,所以我按照文档说明了如何做到这一点,它确实有效: // graph-ql is installed via composer require('../vendo

  • [toc] #### 类型系统 要开始使用`GraphQL`,你需要实现一个`type`层次结构并将之公开为`Schema`。 在`graphql-php`中`type`是来自`GraphQL\Type\Definition`命名空间(`ScalarType`,`ObjectType`,`InterfaceType`,`UnionType`,`InputObjectType`)的内部类(或其子类)

  • [TOC] #### 执行查询 执行查询是一个复杂的过程涉及多个步骤,包括查询解析(query parsing),验证,以及最后的针对schema的执行。 graphql-php在类GraphQL\GraphQL中为些过程提供了方便的接口. ~~~ use GraphQL\GraphQL; $result = GraphQL::execute( $schema, $queryString, $ro

  • 完整的教程 完整标准查看这里 完整标准的中文版 淘宝前端团队的 GraphQL 入门教程 GitHub 的基于 GraphQL 的 API 接口示例 各种语言版本(Java,PHP,Node 等)的 GraphQL 服务端库 1. GraphQL 概述 GraphQL 是完整的 API 标准 REST 只是一种 API 的风格,而 GraphQL 则是完整的 API 标准。完整标准查看这里 Gra

  • 客户使用 GraphQL 查询语言向 GraphQL 服务发出请求。我们将这些请求源称为文档。一个文档可能包含 operation 操作(query 查询和 mutation 变更都是操作)以及 fragment(片段)。 1. Source Text 源文本 GraphQL 支持的 Unicode 字符序列范围:/ [\ u0009 \ u000A \ u000D \ u0020- \ uFFF

  • 官方文档 1. 概述 GraphQL 不只验证请求在语法上是否正确,还验证在当前服务器的 GraphQL 模式上下文中是否正确。预判查询是否有效,从而可以让服务器和客户端在无效查询创建时就有效地通知开发者,而不用等运行时才知道。 类型系统演变 GraphQL 类型系统模式随着时间的推移而增加新的类型和新的字段,以前有效的请求有可能在以后变得无效。任何可能导致先前有效的请求变为无效的更改都被视为重大

  • 参考中文文档 参考博客资料 1. 概念和示例 GraphQL 服务端的库和应用可以用各种语言实现,所以这里的示例脱离语言。 GraphQL 服务端的应用代码的基本实现流程(需要提前安装好 GraphQL 库,各种语言的库参考这里): 定义用户自定义类型。类型的每个字段都必须是已定义的,且最终都是 GraphQL 中定义的类型。 定义根类型。每种根类型中包含了准备暴露给服务调用方的用户自定义类型。

 相关资料
  • 快速开始 GraphQL 是一种用于 API 的查询语言。这是 GraphQL 和 REST 之间一个很好的比较 (译者注: GraphQL 替代 REST 是必然趋势)。在这组文章中, 我们不会解释什幺是 GraphQL, 而是演示如何使用 @nestjs/GraphQL 模块。 GraphQLModule 只不过是 Apollo 服务器的包装器。我们没有造轮子, 而是提供一个现成的模块, 这让

  • GraphQL 既是一种用于 API 的查询语言也是一个满足你数据查询的运行时。 GraphQL 对你的 API 中的数据提供了一套易于理解的完整描述,使得客户端能够准确地获得它需要的数据,而且没有任何冗余,也让 API 更容易地随着时间推移而演进,还能用于构建强大的开发者工具。 向你的 API 发出一个 GraphQL 请求就能准确获得你想要的数据,不多不少。 GraphQL 查询总是返回可预测

  • Graphql editor 是一款 Graphql 的可视化编辑器和 IDE,帮助用户更容易理解 GraphQL 模式,通过使用可视化块系统创建模式。GraphQL Editor 将把它们转化为代码。通过 GraphQL Editor,用户可以在不写任何代码的情况下创建可视化的图表,或者以一种很好的方式呈现其模式。 GraphQL View Code Editor View Hierarchy View

  • GraphQL CLI Help us to improve new GraphQL CLI. Check out the new structure and commands below!Feel free to contact us in Discord channel. We would love to hear your feedback. Features Helpful command

  • Fullstack GraphQL Simple Demo Application API built with Node + Express + GraphQL + Sequelize (supports MySQL, Postgres, Sqlite and MSSQL). WebApp built with React + Redux. Written in ES6 using Babel

  • Hasura GraphQL Engine Hasura is an open source product that accelerates API development by 10x by giving you GraphQL or REST APIs with built in authorization on your data, instantly. Read more at hasu

  • 这是利用Koa + GraphQL + Apollo-Server实现的,学生信息增、删、改、查的栗子 本栗子将搭配Koa实现一个GraphQL查询,逐步从简单Kao服务、到Mongodb的数据插入查询、再到GraphQL的使用,让大家快速看到: 搭建Koa搭建一个后台项目 后台路由简单处理方式 利用Mongoose简单操作Mongodb的增、删、改、查 掌握Apollo-Server简单操作数据

  • GraphQL Ruby 是 GraphQL 的一个 Ruby 实现。 Website API Documentation Newsletter 安装: # Gemfilegem 'graphql' $ bundle install 旨在: 实现 GraphQL 规范并支持一个 Relay 前端 在可能的情况下,提供与参考实现相似的习惯性的、简单的 Ruby API 支持 Ruby on Rails 和 Relay