GithubHelp home page GithubHelp logo

koa-graphql-demo's Introduction

koa-Graphql-demo

Graphql使用apollo-server与koa结合的hello world

没有结合数据库只是简单的写了下最基本的增删改查。
简单了解了一下,graphql在nodejs中有两种使用方式一种是通过graphql的npm包提供的各种函数创建组合;另一种使用apollo-server提供的gpl函数接收字符串参数来生成对应的对象。咋一看纯粹使用字符串生成对象似乎很不合理,实际试用过后发现无疑后者的上手成本要低的多,可以少看一个npm包的文档,代码组织的效果也没有想象中那么不好(还在摸索)

问题: 1. 摸索相关特性 2. 摸索更合理的组织方式 3. 中间件在koa上下中间件的关系,比如能不能前处理和后处理 4. 与数据库的组合 5. 与Sequelize之类的库组合

koa-graphql-demo's People

Contributors

zephylaci avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.