Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naihe138/graphql-demo
🎉Koa + GraphQL + Apollo-Server demo
https://github.com/naihe138/graphql-demo
graphql-demo jquery koa mongodb mongoose nodejs
Last synced: 9 days ago
JSON representation
🎉Koa + GraphQL + Apollo-Server demo
- Host: GitHub
- URL: https://github.com/naihe138/graphql-demo
- Owner: naihe138
- Created: 2017-12-20T07:28:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T15:21:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T01:22:18.014Z (26 days ago)
- Topics: graphql-demo, jquery, koa, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage:
- Size: 5.72 MB
- Stars: 243
- Watchers: 3
- Forks: 39
- Open Issues: 9
-
Metadata Files:
- Readme: README-cn.md
Awesome Lists containing this project
README
这是利用Koa + GraphQL + Apollo-Server实现的,学生信息增、删、改、查的栗子
本栗子将搭配koa实现一个GraphQL查询的例子,逐步从简单Kao服务到Mongodb的数据插入查询再到GraphQL的使用,
让大家快速看到:* 搭建koa搭建一个后台项目
* 后台路由简单处理方式
* 利用mongoose简单操作mongodb的增、删、改、查
* 掌握Apollo-Server简单操作数据的增、删、改、查
* 掌握GraphQL的入门姿势项目如下图所示
## 使用方法
````js
1、git clone https://github.com/naihe138/GraphQL-demo.git2、npm install
3、node run dev
````