Git Product home page Git Product logo

graphql-learn's Introduction

graphql的相关学习

需要说明的是,graphql是一种规范而非具体的实现,开源社区在此规范上有各种实现,这里选取 工具与教程都比较完善的 Apollo 团队整理的一套实现(这些实现都是基于js的)。

在后端实现上 Apollo 给出了两个工具:graphql-toolapollo-server

graphql-tool

graphql-tool 可用于构建相应的schema对象(按照graphql标准语法)

apollo-server

apollo-server 则是一系列的包可和多种 nodejs web框架相配合提供相应的graphql服务。

整理基础章节的目的

graphql 的掌握不是很难,但由于官方的文档起步较高且其他各类参考资料要么泛泛而谈,要么一开始就是举出综合了 好几种特性案例。这些因素使得其入门过程比较痛苦,这里将 graphql 的基本功能依次说明,降低学习的成本。

另外在该工程的 scripts 目录中有可直接运行的代码,建议在学习拿来对比调试实验。

目录

  1. graphql基础查询
  2. graphql关联查询
  3. graphql修改数据

参考

Apollo官方文档
怎样使用GraphQL - 进阶 - 2.服务端

graphql-learn's People

Contributors

wujohns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.